X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=17ad62493e60cda2fd3ddcd24e1ff428aae88f30;hb=72d6ddfe50c6e43c9ec7815b49d7d8611f3e85f5;hp=4b166e994d90d06a547ed5a5d12cfd4399e84617;hpb=0928bfd75c45c99dcef44ccf85c29574a2d25c3f;p=config%2Fdotfiles.git 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