Disable lower case keymap in Vim

吃可爱长大的小学妹 提交于 2020-01-16 04:08:04

问题


I want do disable change-to-lowercase key map in Vim. Specifically, the command mentioned here:

Visual select the text, then u for 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!