diff --git a/plugin/AutoSave.vim b/plugin/AutoSave.vim index 3166f61..3725721 100644 --- a/plugin/AutoSave.vim +++ b/plugin/AutoSave.vim @@ -124,9 +124,7 @@ endfunction function DoSave() if g:auto_save_write_all_buffers >= 1 - let current_buf = bufnr('%') - silent! bufdo update - execute 'buffer' . current_buf + silent! wall else silent! update endif