开发者

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

开发者 https://www.devze.com 2023-01-12 11:09 出处:网络
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 lo

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

精彩评论

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