]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Save changes when running :mak[e].
authorSimon Ruderich <simon@ruderich.org>
Sat, 19 Nov 2011 10:49:19 +0000 (11:49 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 19 Nov 2011 10:49:19 +0000 (11:49 +0100)
vimrc

diff --git a/vimrc b/vimrc
index d950d074e5d7242253d4f0300d81084c5b72de85..dd6ba12077dd45a3c4e1e482fb2b6ba47c11b10b 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -448,6 +448,9 @@ if has('autocmd')
             autocmd InsertLeave * set nopaste
         endif
 
+" Save changes when running :mak[e] before 'makeprg' is called.
+        autocmd QuickFixCmdPre * write
+
 " AFTER/FTPLUGIN AUTO COMMANDS
 
 " Disable spell checking for files which don't need it.