简体   繁体   中英

How to prevent the q will be uppercase automatically while try to quit vim?

Did you guys notice that in command mode of vim, some times when we tried to type "q" and press enter to exit vim but it would automactially turn the "q" into uppercase? How to prevent it?

Put this into your .vimrc :

command! -bang Q q<bang>

This makes :Q imitate :q , and :Q! act as :q! .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM