Auto run go fmt on go code in vim on save

This commit is contained in:
Buddy Sandidge 2013-02-28 20:38:07 -08:00
parent bf82e15ea9
commit 437b858bd4

2
vimrc
View File

@ -175,3 +175,5 @@ augroup COMMIT_EDITMSG
au! BufRead,BufNewFile COMMIT_EDITMSG set filetype=gitcommit au! BufRead,BufNewFile COMMIT_EDITMSG set filetype=gitcommit
augroup END augroup END
autocmd FileType go autocmd BufWritePre <buffer> Fmt