From 6809eb2f93254f331798c1474e15f280dd476414 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 17 Sep 2011 14:28:51 +0200 Subject: [PATCH] vimrc: Write current file when suspending (). --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) 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 - -- 2.44.2