From 9ff12b2034a81bdd04086db19bef7087abb29022 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 8 May 2009 15:00:53 +0200 Subject: [PATCH] vimrc: Add auto corrections for :Qa and :Wqa. --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrc b/vimrc index bea600b..22229e8 100644 --- a/vimrc +++ b/vimrc @@ -124,18 +124,24 @@ nnoremap ; :call setline(line('.'), getline('.') . ';') if v:version < 700 cnoreabbrev W w cnoreabbrev Wq wq + cnoreabbrev Wqa wqa else cnoreabbrev W \ ((getcmdtype() == ':' && getcmdpos() <= 2) ? 'w' : 'W') cnoreabbrev Wq \ ((getcmdtype() == ':' && getcmdpos() <= 3) ? 'wq' : 'Wq') + cnoreabbrev Wqa + \ ((getcmdtype() == ':' && getcmdpos() <= 4) ? 'wqa' : 'Wqa') endif " Also fix my typo with "Q". if v:version < 700 cnoreabbrev Q q + cnoreabbrev Qa qa else cnoreabbrev Q \ ((getcmdtype() == ':' && getcmdpos() <= 2) ? 'q' : 'Q') + cnoreabbrev Qa + \ ((getcmdtype() == ':' && getcmdpos() <= 3) ? 'qa' : 'Qa') endif " Make sure xa0 (alt + space) is automatically changed to a normal whitespace -- 2.45.2