From 732e78d41a31489846fa1689f32968a59649028b Mon Sep 17 00:00:00 2001 From: James Bunton Date: Tue, 23 Oct 2007 21:35:11 +1000 Subject: [PATCH] vim macro :WQ and friends for clumsy people like me :) --- .vim/macros.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.vim/macros.vim b/.vim/macros.vim index 1198022..1ceb24c 100644 --- a/.vim/macros.vim +++ b/.vim/macros.vim @@ -1,6 +1,19 @@ " Python Calculator command! -nargs=+ Calc :r! python -c "from math import *; print " +" 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 :nohlsearch:redraw! -- 2.39.2