Auto run go fmt on go code in vim on save

main
Buddy Sandidge 12 years ago
parent bf82e15ea9
commit 437b858bd4

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

Loading…
Cancel
Save