aboutsummaryrefslogtreecommitdiff
path: root/vim/autocmd.vim
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2014-11-14 18:41:52 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2014-11-14 18:41:52 +0100
commit84c6e61794f00225313cf074cf9fd509eb57583b (patch)
tree26ff13499086ae0238800e5d44d622b26a33632b /vim/autocmd.vim
parentd947e6d70271873d37bab37e357505c5b0d01bf3 (diff)
downloaddotfiles-84c6e61794f00225313cf074cf9fd509eb57583b.tar.gz
dotfiles-84c6e61794f00225313cf074cf9fd509eb57583b.zip
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 :)
Diffstat (limited to 'vim/autocmd.vim')
-rw-r--r--vim/autocmd.vim3
1 files changed, 0 insertions, 3 deletions
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 <buffer> Fmt
-
" Clean up trailing whitespaces on save.
autocmd BufWritePre * :%s/\s\+$//e