For some reason, in my VIM there is a difference in behaviour of Ctrl+Arrow keys in normal mode and in insert mode. To demonstrate this, I edit the file which contents are:
aaa.aaa,aaa/aaa!aaa@aaa#aaa$aaa%aaa^aaa&aaa aaa*aaa(aaa)aaa{aaa}aaa[aaa]aaa-aaa=aaa_aaa"aaa'aaa
In insert mode, when I press Ctrl+Right key, here is where the cursor stops:
a
aa.a
aa,aaa/a
aa!a
aa@a
aa#a
aa$a
aa%a
aa^a
aa&a
aa aaa*
aaa(a
aa)a
aa{a
aa}a
aa[a
aa]a
aa-a
aa=a
aa_a
aa"a
aa'a
aa
In normal mode, here is where the cursor stops:
a
aa.aaa,aaa/aaa!aaa@aaa#aaa$aaa%aaa^aaa&aaa a
aa*aaa(aaa)aaa{aaa}aaa[aaa]aaa-aaa=aaa_aaa"aaa'aaa
I'd like to make it work in normal mode just like it currently works in insert mode.
What I know so far is that :map
and :map!
don't contain any maps for Ctrl+Arrows keys.
Also, VIM recognises Ctrl+Arrows sequences right, i checked that by doing
:nmap <C-Right> :echo 'Normal mode Ctrl+Right'<CR>
:imap <C-Right> <ESC>:echo 'Insert mode Ctrl+Right'<CR>
And I see the effect when I try pressing Ctrl+Arrows How can I fix this?
Update: I've tried the same with a new user who has no ~/.vimrc or ~/.vim, and it reproduces Update2: I'm not remapping the key either
w
(insertmode) vsW
in normal mode and this seems to be an inconsistency in the source. In edit.cfwd_word()
is called and in normal modenv_wordcmd()