Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/goPublic

Commita04e349

Browse files
committed
[release-branch.go1.2] misc/vim: describe how to get gofmt-on-save behaviour.
««« CL 31770043 / 286f0ddb799bmisc/vim: describe how to get gofmt-on-save behaviour.Fixes#6826.R=golang-dev, bradfitz, adgCC=golang-devhttps://golang.org/cl/31770043»»»R=golang-devCC=golang-devhttps://golang.org/cl/34960043
1 parente9dc28b commita04e349

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎misc/vim/readme.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ To use all the Vim plugins, add these lines to your $HOME/.vimrc.
1414
If you want to select fewer plugins, use the instructions in the rest of
1515
this file.
1616

17+
A popular configuration is to gofmt Go source files when they are saved.
18+
To do that, add this line to the end of your $HOME/.vimrc.
19+
20+
autocmd FileType go autocmd BufWritePre <buffer> Fmt
21+
1722

1823
Vim syntax highlighting
1924
-----------------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp