Don't use cmaps for one letter command fixes.

As the vimrc is written the cmaps will change any capital W or Q to
lower case. This has the nasty side effect of breaking any functions
with upper case W or Q (e.g., FixWhitespace).

The correct solution is to use commands. The only side effect here is
that all commands must start with an upper case letter.
This commit is contained in:
Chad Metcalf 2012-09-07 17:42:52 -07:00
parent b0bc30d6bb
commit 2c11eee4c3

8
.vimrc
View File

@ -283,10 +283,10 @@
map <S-L> gt
" Stupid shift key fixes
cmap W w
cmap WQ wq
cmap wQ wq
cmap Q q
command -nargs=* -complete=file W w <args>
command -nargs=* -complete=file Q q <args>
command -nargs=* -complete=file WQ wq <args>
command -nargs=* -complete=file Wq wq <args>
cmap Tabe tabe
" Yank from the cursor to the end of the line, to be consistent with C and D.