问题
I want do disable change-to-lowercase key map in Vim. Specifically, the command mentioned here:
Visual select the text, then
ufor lowercase.
I find out from here that I can add :unmap u to .vimrc, but it will possibly disable undo command, which I don't want.
How can I disable u in visual selection mode?
回答1:
Use <nop>:
xnoremap u <nop>
May also be interested in:
xnoremap U <nop>
nnoremap gu <nop>
nnoremap gU <nop>
For more help see:
:h <Nop>
来源:https://stackoverflow.com/questions/49561572/disable-lower-case-keymap-in-vim