Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jay-johnson/096e7793eef07ae489b670ad1f69d780 to your computer and use it in GitHub Desktop.
Save jay-johnson/096e7793eef07ae489b670ad1f69d780 to your computer and use it in GitHub Desktop.
Mac OS X iTerm2 settings

Set these under iTerm2 > Preferences > Keys

Vim Page Down

control + d

Send Text with "vim" Special Chars

to

\033[6~

Vim Page Up

control + b

Send Text with "vim" Special Chars

to

\033[5~

Control + C

Send Hex Code: 03

Set this in your ~/.vimrc to fix control+a (front of line) and control+e (end of line)

" front of line
inoremap <C-a> <C-o>0
" end of line
inoremap <C-e> <C-o>$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment