diff --git a/vim/plugin/autosave.vim b/vim/plugin/autosave.vim index 7e3adf7..42dc5c0 100644 --- a/vim/plugin/autosave.vim +++ b/vim/plugin/autosave.vim @@ -9,6 +9,10 @@ function! TryAutosave() end endfunction +if exists("$AUTOSAVE") + set autowriteall +end + augroup autosave autocmd! autocmd BufLeave * call TryAutosave()