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

[release-branch.go1.2] misc/vim: describe how to get gofmt-on-save behaviour.

««« CL 31770043 / 286f0ddb799b
misc/vim: describe how to get gofmt-on-save behaviour.

Fixes #6826.

R=golang-dev, bradfitz, adg
CC=golang-dev
https://golang.org/cl/31770043
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/34960043
This commit is contained in:
Andrew Gerrand 2013-11-29 07:04:23 +11:00
parent e9dc28b0de
commit a04e34923c

View File

@ -14,6 +14,11 @@ To use all the Vim plugins, add these lines to your $HOME/.vimrc.
If you want to select fewer plugins, use the instructions in the rest of If you want to select fewer plugins, use the instructions in the rest of
this file. this file.
A popular configuration is to gofmt Go source files when they are saved.
To do that, add this line to the end of your $HOME/.vimrc.
autocmd FileType go autocmd BufWritePre <buffer> Fmt
Vim syntax highlighting Vim syntax highlighting
----------------------- -----------------------