开发者

Disable the ':' character in Vim

开发者 https://www.devze.com 2023-04-10 06:59 出处:网络
In my ~/.vimrc I have mapped ; to : so I don\'t have to press shift every time I want to enter a command and so I avoid typos l开发者_Python百科ike :W. I have mapped it using nnoremap ; :. My muscle m

In my ~/.vimrc I have mapped ; to : so I don't have to press shift every time I want to enter a command and so I avoid typos l开发者_Python百科ike :W. I have mapped it using nnoremap ; :. My muscle memory is so strong however, is that I find myself frequently pressing : when I dont need to and I still get typos like :W.

How can I disable the : character completely and just use ; in normal mode?


nnoremap ; :
nnoremap : <nop>

would be considered fairly harmless.

I don't need to point out that using this kind of setup will drive anyone trying to use your box nuts, and will render yourself crippled when at a random other UNIX console :)?...

0

精彩评论

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