From 72a40a20849203ef7aef7eb95806887136935f7c Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Sun, 13 Sep 2015 12:06:51 +0200 Subject: [PATCH] Do goimports automatically on save --- .vimrc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index 89cc691..04012a2 100644 --- a/.vimrc +++ b/.vimrc @@ -92,6 +92,7 @@ runtime bundle/vim-pathogen/autoload/pathogen.vim execute pathogen#infect() let g:SuperTabDefaultCompletionType = "context" +let g:go_fmt_command = "goimports" colorscheme mydark @@ -147,10 +148,6 @@ call Amap("F8", "setl paste! number! list! NoShowMarks GitGutterTogg call Amap("S-Left", "tabprev") call Amap("S-Right", "tabnext") -" Override vim-Rails plugin default binding -"let g:rails_mappings=0 -"nmap gf RailsTabFind - " Navigate by windows with Ctrl+direction call Amap("C-Left", "wincmd h") call Amap("C-Down", "wincmd j") @@ -202,5 +199,3 @@ command W w command Q q command Qa qa command QA qa - -let gofmt_command = "goimports"