MacOS Sierra Terminal Vim Home / Complete Keys

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

They still work correctly on the command line.

In the terminal settings, I have a home setting for sending "\ 001" and completion for sending "\ 005".

+4
source share
2 answers

I set the keys Terminalto \ 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>
+5
source

, vim. , Terminal \033[1~ (Esc [1~) \033[4~ (Esc \033[4~).

, - SUSE Enterprise Linux readline history-search-backward set-mark, /etc/inputrc ~/.inputrc , Linux .

0

Source: https://habr.com/ru/post/1656000/


All Articles