Skip to content

Commit

Permalink
docs: add settings
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Mar 30, 2014
1 parent c595d90 commit 4c6889a
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,40 @@ COMMANDS *go-commands*


===============================================================================
SETTINGS *go-settings*
SETTINGS *go-settings*


*'g:go_fmt_autosave'*

Use this option to auto |:GoFmt| on save. By default it's enabled >
let g:go_fmt_autosave = 1
<
*'g:go_fmt_command'*

Use this option to define which tool is used to gofmt. By default `goimports`
is used >
let g:go_fmt_command = "goimports"
<
*'g:go_disable_autoinstall'*

By default vim-go automatically install all necessary tools which are used
for |:go-commands|. Disable it if you don't wish to be updated. Also disable
|:GoUpdateBinaries| >
let g:go_disable_autoinstall = 0
<

*'g:go_bin_path'*

Use this option to change default path for vim-go tools. By default it's set
to `$HOME/.vim-go/`. To change it: >
let g:go_bin_path = expand("$HOME/.vim-go/")
===============================================================================
CREDITS *go-credits*
CREDITS *go-credits*


vim:ft=help:et:ts=2:sw=2:sts=2:norl

0 comments on commit 4c6889a

Please sign in to comment.