I want to map cmd-left/right to W and w to navigate splits. So I tested right from the command line (in normal mode):
:map <D-Left> <C-w>W And it works like a charm. When I had the same line (minus the colon, obviously) in my .vimrc, the mapping is not set.
The closest question I found seem to be related to cygwin only. I also don't believe I am running against a terminal hijacking issue (launching macvim from the finder doesn't change the behaviour) nor does CMD-left/right seem to be an OS wide shortcut.
I must be missing something terribly simple here but I can't find out what.
Thanks in advance for any help/hints
nnoremapinstead ofmap. (2) How can you tell the map isn't set? What is the output of::map <D-Left>?* <Home>which is the behaviour I see (going the beginning of line). Same behaviour withnnoremap.:verbose map <D-Left>to find in which script the mapping were defined for the last time