snt*_*nth 29 windows vim keyboard-shortcuts
我正在尝试使用vim下的<Ca>(CTRL+ A)shorcut来增加光标下的变量.这在Linux上运行的vim下工作正常.然而,当我尝试在windows下的gvim中执行此操作时,它"选择全部"(即突出显示或在视觉上选择当前窗口中的所有文本).如何更改此行为,或者如何恢复增量变量功能(例如,可能使用不同的键映射)?
Luc*_*tte 30
这是因为mswin.vim是由安装vim时生成的默认_vimrc提供的.只需使用*nix下使用的.vimrc覆盖_vimrc,或删除mswin.vim.
I know I'm late to the party, but I thought I'd share the following:
nnoremap <kPlus> <C-a>
nnoremap <kMinus> <C-x>
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.
| 归档时间: | 
 | 
| 查看次数: | 12756 次 | 
| 最近记录: |