vimrc: update Go shortcuts

This commit is contained in:
Rob Watson 2021-03-18 17:18:38 +01:00
parent cdd45b74d4
commit 91381a8431
1 changed files with 4 additions and 2 deletions

View File

@ -17,8 +17,10 @@ nmap <silent> <leader>gD :GoDeclsDir<cr>
" mnemonic: match
nmap <silent> <leader>gm :GoSameIds<cr>
nmap <silent> <leader>gv <esc>:vsplit<bar>:GoAlternate!<cr>
nmap <silent> <leader>gs <esc>:split<bar>:GoAlternate!<cr>
nmap <silent> <leader>gv :vsplit<bar>:GoAlternate!<cr>
nmap <silent> <leader>gV <c-w><c-o>:vsplit<bar>:GoAlternate!<cr>
nmap <silent> <leader>gs :split<bar>:GoAlternate!<cr>
nmap <silent> <leader>gS <c-w><c-o>:split<bar>:GoAlternate!<cr>
nmap <silent> <leader>gt <esc>:up<bar>:GoTest<cr>
nmap <silent> <leader>gf <esc>:up<bar>:GoTestFunc<cr>
nmap <silent> <leader>gat <esc>:GoAddTags<cr>