]> code.delx.au - dotfiles/commitdiff
vim macro :WQ and friends for clumsy people like me :)
authorJames Bunton <jamesbunton@delx.net.au>
Tue, 23 Oct 2007 11:35:11 +0000 (21:35 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Tue, 23 Oct 2007 11:35:11 +0000 (21:35 +1000)
.vim/macros.vim

index 11980226c26a1331bd3def8918bd73cb3c9f490c..1ceb24c1865f28287282adb9433e43d07d6c794e 100644 (file)
@@ -1,6 +1,19 @@
 " Python Calculator
 command! -nargs=+ Calc :r! python -c "from math import *; print <args>"
 
+" I frequently type :Q or :WQ, etc instead of :q, :wq
+command! WQA :wqa
+command! WqA :wqa
+command! WQa :wqa
+command! Wqa :wqa
+command! WA :wa
+command! Wa :wa
+command! WQ :wq
+command! Wq :wq
+command! W :w
+command! QA :wqa
+command! Qa :wqa
+
 " Unhighlight search results
 map <C-l> :nohlsearch<CR>:redraw!<CR>