Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

macOS Sierra Terminal Vim Home/End keys

Since upgrading to macOS Sierra my home and end keys no longer work in vim.

They still work properly at the command prompt.

In terminal settings I have home set to send "\001" and end to send "\005".

like image 410
Captnwalker1 Avatar asked Sep 27 '16 19:09

Captnwalker1


1 Answers

I've set my Terminal keys to \001 for ↖ and \005 for ↘. On my .vimrc:

map  <C-A> <Home>
imap <C-A> <Home>
vmap <C-A> <Home>
map  <C-E> <End>
imap <C-E> <End>
vmap <C-E> <End>
like image 135
brunoabinader Avatar answered Sep 30 '22 16:09

brunoabinader