mirror of
https://github.com/spf13/spf13-vim.git
synced 2024-09-21 15:37:10 +00:00
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:
parent
b0bc30d6bb
commit
2c11eee4c3
8
.vimrc
8
.vimrc
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user