From 84c6e61794f00225313cf074cf9fd509eb57583b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Fri, 14 Nov 2014 18:41:52 +0100 Subject: vim: call goimports on save properly. Apparently vim-go has added this settings in which you can tell him which gofmt to be called on save. So no more crappy autocmd there :) --- vim/bundles.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vim/bundles.vim') diff --git a/vim/bundles.vim b/vim/bundles.vim index 2affba0..a95ad48 100644 --- a/vim/bundles.vim +++ b/vim/bundles.vim @@ -22,3 +22,6 @@ map s ysiw " Let CtrlP's window to be taller than its default configuration. let g:ctrlp_match_window = 'max:40' +" Tell vim-go to use goimports on save. +let g:go_fmt_command = "goimports" + -- cgit v1.2.3