From: Simon Ruderich Date: Fri, 11 Dec 2009 08:42:00 +0000 (+0100) Subject: vimrc: Also "fix" :Wa. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=72d6ddfe50c6e43c9ec7815b49d7d8611f3e85f5;p=config%2Fdotfiles.git vimrc: Also "fix" :Wa. --- diff --git a/vimrc b/vimrc index 4b166e9..17ad624 100644 --- a/vimrc +++ b/vimrc @@ -162,11 +162,14 @@ nnoremap ; :call setline(line('.'), getline('.') . ';') " mailing list for the commands. if v:version < 700 cnoreabbrev W w + cnoreabbrev Wa wa cnoreabbrev Wq wq cnoreabbrev Wqa wqa else cnoreabbrev W \ ((getcmdtype() == ':' && getcmdpos() <= 2) ? 'w' : 'W') + cnoreabbrev Wa + \ ((getcmdtype() == ':' && getcmdpos() <= 3) ? 'wa' : 'Wa') cnoreabbrev Wq \ ((getcmdtype() == ':' && getcmdpos() <= 3) ? 'wq' : 'Wq') cnoreabbrev Wqa