diff --git a/autoload/go/config.vim b/autoload/go/config.vim index 00cca6061f..f6c28fc0d7 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -308,7 +308,7 @@ function! go#config#FmtAutosave() abort endfunction function! go#config#ImportsAutosave() abort - return get(g:, 'go_imports_autosave', 1) + return get(g:, 'go_imports_autosave', 0) endfunction function! go#config#SetFmtAutosave(value) abort diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 1cf50a4828..b961cc5d88 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -1404,9 +1404,9 @@ it's causing problems on some Vim versions. This has no effect if *'g:go_imports_autosave'* -Use this option to auto |:GoImports| on save. By default it's enabled. +Use this option to auto |:GoImports| on save. By default it's disabled. > - let g:go_imports_autosave = 1 + let g:go_imports_autosave = 0 < *'g:go_imports_mode'*