diff --git a/misc/vim/ftplugin/go/fmt.vim b/misc/vim/ftplugin/go/fmt.vim index 18a2156f5f..a299dfcee7 100644 --- a/misc/vim/ftplugin/go/fmt.vim +++ b/misc/vim/ftplugin/go/fmt.vim @@ -13,7 +13,7 @@ " replacing the buffer with stderr output. " -command! Fmt call s:GoFormat() +command! -buffer Fmt call s:GoFormat() function! s:GoFormat() let view = winsaveview()