Why does < C> (CTRL+A) not work under gvim on windows?

后端 未结 5 2120
情歌与酒
情歌与酒 2020-12-24 13:30

I\'m trying to use the < C-a> (CTRL+A) shorcut under vim to increment a variable under the cursor. This works fine under vim running on Linux. Howev

5条回答
  •  梦毁少年i
    2020-12-24 13:51

    I know I'm late to the party, but I thought I'd share the following:

    nnoremap  
    nnoremap  
    

    This remaps increment to the + key on the numeric keypad and decrement to the - key. It's the solution I've used in my own _vimrc file on Windows. It keeps the Windows compatibility and is easier to remember than the original Ctrl+A/Ctrl+X as well.

提交回复
热议问题