diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index de781c8..91ac8b2 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -1,54 +1,5 @@ -nmap gb :up:GoBuild -nmap gr :up:GoRun -nmap gt :up:GoTest! -nmap gT :up:GoTest -nmap gf :up:GoTestFunc! -nmap gF :up:GoTestFunc -nmap gj :GoDecls -nmap gJ :GoDeclsDir - -nmap gk :GoDocBrowser - -nmap gv :vsplit:GoAlternate! -nmap gV :vsplit:GoAlternate! -nmap gs :split:GoAlternate! -nmap gS :split:GoAlternate! -nmap gat :GoAddTags -nmap gfs :GoFillStruct -nmap grt :GoRemoveTags -nmap gec :up:GoErrCheck - nnoremap _ ciw_b -nnoremap dr :GoDebugBreakpoint -nnoremap d! :GoDebugStart -nnoremap dc :GoDebugContinue -nnoremap dq :GoDebugStop -nnoremap dn :GoDebugNext -nnoremap ds :GoDebugStep - -" Vim-Go configuration -let g:go_gopls_enabled = 0 -let g:go_fmt_autosave = 0 -let g:go_imports_autosave = 0 -let g:go_textobj_enabled = 0 -let g:go_auto_sameids = 0 -let g:go_auto_type_info = 0 -let g:go_code_completion_enabled = 0 -let g:go_echo_command_info = 0 -let g:go_echo_go_info = 0 -let g:go_textobj_enabled = 0 -let g:go_highlight_diagnostic_errors = 0 -let g:go_highlight_diagnostic_warnings = 0 -let g:go_highlight_trailing_whitespace_error=0 - -" g:go_statusline_duration doesn't seem to work accurately, but does help -" reduce the time the build/test success messages are shown in the status -" line. -let g:go_statusline_duration = 1000 - -autocmd BufNewFile,BufRead *.go nmap g6 :GoAlternate! - iabbrev mk make([]MyType, 0)9h iabbrev wr w http.ResponseWriter, r *http.Request=Eatchar('\s') iabbrev ttt t *testing.T