From 596d7ab66a92edca28fae7bc9037728ca029a460 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Wed, 16 Sep 2015 09:24:48 -0500 Subject: [PATCH] Run golint on go files --- home/.vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/.vimrc b/home/.vimrc index 2593171..b29c1b9 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -65,3 +65,5 @@ au InsertLeave * hi StatusLine term=reverse ctermfg=0 ctermbg=2 gui=bold,reverse vmap v (expand_region_expand) vmap (expand_region_shrink) +set rtp+=$GOPATH/src/github.com/golang/lint/misc/vim +autocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow