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:
parent
5784dcfd19
commit
c6fd1e0115
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user