How to remap Ctrl+Home to go to first line in file? I tried the following command, but it doesn't work (environment is xterm in KDE). Vim recognises the Home key and goes to beginning of line, but looks like it doesn't recognized Ctrl+Ho开发者_StackOverflow中文版me combo.
noremap <Ctrl-Home> gg
Vim does not know
<Ctrl-
modifier. It calls it<C-
. Tryinoremap <C-Home> gg
If that does not help, then see whether there is some difference between what vim shows when you press
<C-v><C-home>
and<C-v><Home>
, post both results here. If there is no difference, then it maybe is not possible.
精彩评论