]> Cypherpunks repositories - gostls13.git/commitdiff
misc/vim: limit Fmt command to Go buffers.
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Mon, 30 May 2011 02:20:00 +0000 (12:20 +1000)
committerDavid Symonds <dsymonds@golang.org>
Mon, 30 May 2011 02:20:00 +0000 (12:20 +1000)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4548072

misc/vim/ftplugin/go/fmt.vim

index 18a2156f5fa1d56798b24db034490dc50c7d31c4..a299dfcee7da84ffdfa512c3311330788a7dd25f 100644 (file)
@@ -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()