1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:44:40 -07:00

misc/vim: limit Fmt command to Go buffers.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4548072
This commit is contained in:
Yasuhiro Matsumoto 2011-05-30 12:20:00 +10:00 committed by David Symonds
parent 5784dcfd19
commit c6fd1e0115

View 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()