I am trying to map the key sequence Ctrl-W arrow key to navigate between open split windows in Vim. I find it a bit too complicated to press 3 keys to move between open windows so ideally I would like to map this sequence to the sequence I normally use in Terminator Alt-arrow key. For example, in Terminator I would press Alt-Left to move one window to the left, Alt-Down to move one window to the bottom, etc.
I have tried following Vim key mappings page and tried this:
:map <press Alt-Down> <press Ctrl-W><press Down>
but it doesn't work. No error message. Nothing happens.
I've also tried this:
:map <A-Down> <C-W><Down>
but it doesn't work either.
Do I miss anything? How do I map Ctrl-W arrow to Alt-arrow?
^[[C
. So I press alt+<arrow right> and <arrow right> and I get ^[[C. Is this is a problem? On a regular Ubuntu Terminal it works. I get^[[1;3A
. Do does this situation make me dependant on using Terminal for Vim? – jedi Feb 14 '18 at 10:25