开发者

How to remap <Ctrl-Home> to go to first line in file?

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


  1. Vim does not know <Ctrl- modifier. It calls it <C-. Try

    inoremap <C-Home> gg
    
  2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜