From 2c11eee4c3d1978c2efc9c94174c1d994cffa64d Mon Sep 17 00:00:00 2001 From: Chad Metcalf Date: Fri, 7 Sep 2012 17:42:52 -0700 Subject: [PATCH] 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. --- .vimrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 7f80471..9efe52a 100644 --- a/.vimrc +++ b/.vimrc @@ -283,10 +283,10 @@ map gt " Stupid shift key fixes - cmap W w - cmap WQ wq - cmap wQ wq - cmap Q q + command -nargs=* -complete=file W w + command -nargs=* -complete=file Q q + command -nargs=* -complete=file WQ wq + command -nargs=* -complete=file Wq wq cmap Tabe tabe " Yank from the cursor to the end of the line, to be consistent with C and D.