Let's try all the autowrites

Wed, 17 Feb 2016 19:35:14 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 17 Feb 2016 19:35:14 -0500
changeset 259
3ea35d31175b
parent 258
599c509f134c
child 260
52b31c74fe37

Let's try all the autowrites

.vimrc file | annotate | diff | comparison | revisions
--- a/.vimrc
+++ b/.vimrc
@@ -270,7 +270,7 @@ set backupdir=$MYVIM/var/backup//,.
 set directory=$MYVIM/var/tmp//,.
 
 set backup
-set autowrite
+set autowriteall
 
 if has('persistent_undo')
   set undofile
@@ -283,6 +283,8 @@ end
 augroup vimrc
   autocmd!
 
+  autocmd FocusLost * silent! wa
+
   " you have to go out of your way to make this stick
   autocmd BufNewFile,BufRead * setlocal formatoptions-=ro
 

mercurial