VIM TIP22
I frequently hold the shift key for too long when typing, for instance :wq, and end up with :Wq. Vim then whines "Not an editor command: Wq" 我时常在输入的时候按住shift键,比如:wq当以:Wq录入时,Vim会提示“无:Wq命令”的错误 In my .vimrc, I have taught vim my common typos: 在我的.vimrc配置中,我讲设置如下等价录入 command! Q quit command! W write command! Wq wq this one won't work, because :X is already a built-in command command! X xit 如果不生效的话,那是应为:X已然是内置的命令!X xit了。
Comments