misc/vim/readme.txt | 5 +++++ diff --git a/misc/vim/readme.txt b/misc/vim/readme.txt index a394cec5a9be4fdad21fde090c34e791b7a27667..b8469f92750d2c4b3275399c9c1fe3405eb8b180 100644 --- a/misc/vim/readme.txt +++ b/misc/vim/readme.txt @@ -14,6 +14,11 @@ If you want to select fewer plugins, use the instructions in the rest of 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 Fmt + Vim syntax highlighting -----------------------