Created
February 7, 2017 04:10
-
-
Save dictav/3e67ceda8f39c19609e366190913e06c to your computer and use it in GitHub Desktop.
vimrc to format go file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:go_fmt_commands = 0 "disable builtin :Fmt | |
Plug 'haya14busa/vim-gofmt', { 'for': ['go'] } | |
let g:gofmt_formatters = [ | |
\ { 'cmd': 'goimports', 'args': ['-w'] }, | |
\ { 'cmd': 'gotypeconv', 'args': ['-w'] }, | |
\ ] | |
Plug 'fatih/vim-go', { 'for': ['go'] } | |
let g:go_fmt_command = 'gofmtrlx' | |
let g:go_metalinter_autosave = 1 "enable auto :GoMetaLinter on save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment