vimrc: Update Go mappings

This commit is contained in:
Rob Watson 2021-03-09 19:34:18 +01:00
parent fe84eabb40
commit e6246f54fd
1 changed files with 13 additions and 9 deletions

View File

@ -1,13 +1,17 @@
nmap <Leader>gb :GoBuild<CR> nmap <leader>gb :GoBuild<cr>
nmap <leader>gc :GoCallers<CR> nmap <leader>gc :GoCallers<cr>
nmap <Leader>i :GoImplements<CR> nmap <leader>gi :GoImplements<cr>
nmap <Leader>^ :GoAlternate<CR> nmap <leader>^ :GoAlternate<cr>
nmap <Leader>d :GoDoc<CR> nmap <leader>gk :GoDocBrowser<cr>
nmap <leader>gd :GoDecls<cr>
nmap <leader>gD :GoDeclsDir<cr>
map <leader>gv <esc>:vsplit<bar>:GoAlternate!<cr> nmap <leader>gv <esc>:vsplit<bar>:GoAlternate!<cr>
map <leader>gs <esc>:split<bar>:GoAlternate!<cr> nmap <leader>gs <esc>:split<bar>:GoAlternate!<cr>
map <leader>gt <esc>:w <bar> :GoTest<cr> nmap <leader>gt <esc>:w <bar> :GoTest<cr>
map <leader>gf <esc>:w <bar> :GoTestFunc<cr> nmap <leader>gf <esc>:w <bar> :GoTestFunc<cr>
nmap <leader>gat <esc>:GoAddTags<cr>
nmap <leader>grt <esc>:GoRemoveTags<cr>
nnoremap <silent> dr :GoDebugBreakpoint<cr> nnoremap <silent> dr :GoDebugBreakpoint<cr>
nnoremap <silent> d! :GoDebugStart<cr> nnoremap <silent> d! :GoDebugStart<cr>