From 0a7e162c709aee0fa0ef3f58ceb95736cdef4c00 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 15 Aug 2015 15:36:21 +0900 Subject: [PATCH] Updating keymaps, making saving go files not be slow. --- .vim/ftplugin/go.vim | 1 - .vim/keymaps.vim | 6 ++++++ .vim/plugins.vim | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.vim/ftplugin/go.vim b/.vim/ftplugin/go.vim index 5d44441..bbd8967 100644 --- a/.vim/ftplugin/go.vim +++ b/.vim/ftplugin/go.vim @@ -1,2 +1 @@ setlocal noexpandtab -let b:argwrap_wrap_closing_brace = 0 diff --git a/.vim/keymaps.vim b/.vim/keymaps.vim index 494b3cb..1df8906 100644 --- a/.vim/keymaps.vim +++ b/.vim/keymaps.vim @@ -15,6 +15,12 @@ nnoremap a :ArgWrap vmap (EasyAlign) nmap ga (EasyAlign) +" vim-go +auto FileType go nmap b (go-build) +auto FileType go nmap c (go-coverage) +auto FileType go nmap r (go-run) +auto FileType go nmap t (go-test) + " vim-fswitch noremap fs :FSHere diff --git a/.vim/plugins.vim b/.vim/plugins.vim index 5212776..d1e1621 100644 --- a/.vim/plugins.vim +++ b/.vim/plugins.vim @@ -48,12 +48,16 @@ call plug#end() let g:ctrlp_cmd = 'CtrlPMixed' " syntastic -let g:syntastic_python_checkers = ['pyflakes'] +auto FileType go let b:syntastic_mode = "passive" let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_python_checkers = ['pyflakes'] " vim-airline let g:airline#extensions#tabline#enabled = 1 +" vim-argwrap +auto FileType go let b:argwrap_wrap_closing_brace = 0 + " vim-gitgutter let g:gitgutter_max_signs = 10000