diff --git a/plugin/autoformat.vim b/plugin/autoformat.vim index 699b305..09a7e87 100644 --- a/plugin/autoformat.vim +++ b/plugin/autoformat.vim @@ -272,7 +272,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 Autoformat let winview=winsaveview()|,call s:TryAllFormatters()|call winrestview(winview) +command! -nargs=? -range=% -complete=filetype -bar Autoformat let winview=winsaveview()|,call s:TryAllFormatters()|call winrestview(winview) " Functions for iterating through list of available formatters