From c6fd1e011569e713c9290386bab6a9966504f872 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 30 May 2011 12:20:00 +1000 Subject: [PATCH] misc/vim: limit Fmt command to Go buffers. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4548072 --- misc/vim/ftplugin/go/fmt.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()