Further vim updates
This commit is contained in:
parent
6c2765d3d5
commit
06837b9c10
|
@ -0,0 +1,11 @@
|
|||
map <Leader>gb :GoBuild<CR>
|
||||
map <Leader>i :GoImplements<CR>
|
||||
map <Leader>^ :GoAlternate<CR>
|
||||
map <Leader>d :GoDoc<CR>
|
||||
|
||||
iabbrev fmtpl fmt.Println("")<esc>hi
|
||||
iabbrev fmtpf fmt.Printf("\n")<esc>3hi
|
||||
iabbrev mk make([]MyType, 0)<esc>9h
|
||||
iabbrev wr w http.ResponseWriter, r *http.Request
|
||||
iabbrev fttt <ESC>ccfunc TestSomething(t *testing.T) {<cr>}<esc>k9l
|
||||
iabbrev ttt t *testing.T
|
4
vimrc
4
vimrc
|
@ -92,7 +92,9 @@ nnoremap <Leader>0 `[v`]
|
|||
map <leader>m :marks<cr>
|
||||
map <leader>R :registers<cr>
|
||||
map <leader>v :vsplit<cr>
|
||||
map <leader>h :split<cr>file browser
|
||||
map <leader>s :split<cr>
|
||||
map <leader>gv <esc>:vsplit<bar>:GoAlternate<cr>
|
||||
map <leader>gs <esc>:split<bar>:GoAlternate<cr>
|
||||
map <leader>! <esc>:only<cr>
|
||||
" ctrl-c to unload a buffer
|
||||
nnoremap <silent> <c-q> :bp\|bd #<cr>
|
||||
|
|
Loading…
Reference in New Issue