From a276cb35c3a1cb075fd82349be21a82baf1ef611 Mon Sep 17 00:00:00 2001 From: yan Date: Thu, 15 Dec 2011 22:56:48 -0800 Subject: [PATCH] Automatically write the file when we lose focus --- vimrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index a40a61d..21d06a4 100644 --- a/vimrc +++ b/vimrc @@ -122,4 +122,6 @@ set viminfo='100,f1 " term for running tests " autocmd WinEnter * stopinsert -"autocmd WinEnter * NeoComplCacheEnable + +" Auto save when we go elsewhere +au FocusLost * :wa