From 2a3b819be1d08e62589f3914d6659c26d95a78f0 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Thu, 11 Mar 2021 14:35:44 +0100 Subject: [PATCH] vim updates --- vim/after/ftplugin/go.vim | 1 + vimrc | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/vim/after/ftplugin/go.vim b/vim/after/ftplugin/go.vim index 07d4b4c..09bede4 100644 --- a/vim/after/ftplugin/go.vim +++ b/vim/after/ftplugin/go.vim @@ -12,6 +12,7 @@ nmap gt :up:GoTest nmap gf :up:GoTestFunc nmap gat :GoAddTags nmap grt :GoRemoveTags +nmap ge :GoIfErr nnoremap dr :GoDebugBreakpoint nnoremap d! :GoDebugStart diff --git a/vimrc b/vimrc index 8ee3dd1..123c355 100644 --- a/vimrc +++ b/vimrc @@ -156,6 +156,10 @@ set laststatus=2 nnoremap hg :GitGutterLineHighlightsToggle nmap ]h (GitGutterNextHunk) nmap [h (GitGutterPrevHunk) +omap ih (GitGutterTextObjectInnerPending) +omap ah (GitGutterTextObjectOuterPending) +xmap ih (GitGutterTextObjectInnerVisual) +xmap ah (GitGutterTextObjectOuterVisual) " Vim-Rust configuration: let g:rustfmt_autosave = 1 @@ -187,8 +191,8 @@ map f :ALEFindReferences map fv :ALEFindReferences -vsplit map fh :ALEFindReferences -split map ft :ALEFindReferences -tab -nnoremap gd :GoToDefinition -nnoremap gD :GoToTypeDefinition +nnoremap gD :ALEGoToTypeDefinition +nnoremap gd :ALEGoToDefinition command GoToDefinition ALEGoToDefinition command GoToTypeDefinition ALEGoToTypeDefinition command FindReferences ALEFindReferences