From 437b858bd4d9e9bfb1ee8fe038e78ad114208fdd Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 28 Feb 2013 20:38:07 -0800 Subject: [PATCH] Auto run go fmt on go code in vim on save --- vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc b/vimrc index 19ef00d..eef2ae3 100644 --- a/vimrc +++ b/vimrc @@ -175,3 +175,5 @@ augroup COMMIT_EDITMSG au! BufRead,BufNewFile COMMIT_EDITMSG set filetype=gitcommit augroup END +autocmd FileType go autocmd BufWritePre Fmt +