diff --git a/vim/plugin/autosave.vim b/vim/plugin/autosave.vim index 67c558f..13bfcb9 100644 --- a/vim/plugin/autosave.vim +++ b/vim/plugin/autosave.vim @@ -1,11 +1,9 @@ " Extend autosavefeature :) function! TryAutosave() - if &autowriteall - if &mod - silent write + if &autowriteall && &mod && &buftype=="" + silent write redraw - end end endfunction