--- a/vim/vimrc Wed Sep 26 08:45:31 2018 -0400
+++ b/vim/vimrc Wed Sep 26 17:48:10 2018 +0000
@@ -1393,6 +1393,16 @@
augroup END
" }}}
+" Go {{{
+
+augroup ft_go
+ au!
+
+ au FileType go setlocal shiftwidth=8
+ au FileType go nnoremap <buffer> <silent> M :GoDoc<cr>
+augroup END
+
+" }}}
" hgrc {{{
augroup ft_hgrc
@@ -2144,6 +2154,12 @@
nnoremap <leader>u V:Gbrowse @upstream<cr>
" }}}
+" Go {{{
+
+let g:go_fmt_command = "goimports"
+let g:go_doc_keywordprg_enabled = 0
+
+" }}}
" Gundo {{{
nnoremap <F5> :GundoToggle<CR>