autocmd InsertLeave * set nopaste
endif
-" Write file when running :mak[e] before 'makeprg' is called. QuickFixCmdPre
-" doesn't exist in older Vims.
+" Write all files when running :mak[e] before 'makeprg' is called.
+" QuickFixCmdPre doesn't exist in older Vims.
if exists('##QuickFixCmdPre')
- autocmd QuickFixCmdPre * write
+ autocmd QuickFixCmdPre * wall
endif
" Don't ignore case while in insert mode, but ignore case in all other modes.