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/autocmd.vim | 3 --- 1 file changed, 3 deletions(-) (limited to 'vim/autocmd.vim') diff --git a/vim/autocmd.vim b/vim/autocmd.vim index 810b7fa..d673b27 100644 --- a/vim/autocmd.vim +++ b/vim/autocmd.vim @@ -12,9 +12,6 @@ autocmd FileType cpp setlocal shiftwidth=4 tabstop=4 autocmd FileType php setlocal noexpandtab shiftwidth=4 tabstop=4 autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 -" Call gofmt on save. -autocmd FileType go autocmd BufWritePre Fmt - " Clean up trailing whitespaces on save. autocmd BufWritePre * :%s/\s\+$//e -- cgit v1.2.3