How do I get Home and End working for BOTH iTerm2 and VIM?
Solution 1:
The problem turned out to be Zshell.
New macbooks come default with zshell now, creating confusion for setting these keys on a full size keyboard. Typing bash
and using that as my default shell worked without a problem, but I wanted to know how to accomplish this in zshell.
The solution was to first remove any keybindings set in iTerm for home and end; then modify ~/.zshrc
with the following I got from this link:
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
Then, obviously, source ~/.zshrc
.