diff --git a/plugin/autoformat.vim b/plugin/autoformat.vim index adacb78..142713c 100644 --- a/plugin/autoformat.vim +++ b/plugin/autoformat.vim @@ -297,7 +297,7 @@ endfunction " Create a command for formatting the entire buffer " Save and recall window state to prevent vim from jumping to line 1 -command! -nargs=? -range=% -complete=filetype -bar Autoformat let winview=winsaveview()|,call s:TryAllFormatters()|call winrestview(winview) +command! -nargs=? -range=% -complete=filetype -bar Autoformat let winview=winsaveview()|wviminfo|,call s:TryAllFormatters()|call winrestview(winview)|rviminfo " Functions for iterating through list of available formatters