From: Yasuhiro Matsumoto Date: Mon, 30 May 2011 02:20:00 +0000 (+1000) Subject: misc/vim: limit Fmt command to Go buffers. X-Git-Tag: weekly.2011-06-02~66 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c6fd1e011569e713c9290386bab6a9966504f872;p=gostls13.git misc/vim: limit Fmt command to Go buffers. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4548072 --- 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()