From: Simon Ruderich Date: Sat, 17 Sep 2011 12:28:51 +0000 (+0200) Subject: vimrc: Write current file when suspending (). X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=6809eb2f93254f331798c1474e15f280dd476414;p=config%2Fdotfiles.git vimrc: Write current file when suspending (). --- diff --git a/vimrc b/vimrc index 6e41864..35edbdf 100644 --- a/vimrc +++ b/vimrc @@ -223,6 +223,10 @@ cmap cnoremap cnoremap +" Write before suspending, thanks to deryni in #vim on Freenode (2011-05-09 +" 20:02 CEST). To suspend without saving either unmap it or use :stop. +nnoremap :update:stop + " Use to move down a page and - to move up one like in mutt. nnoremap nnoremap -