Update vim config
This commit is contained in:
parent
b556b974a3
commit
33362f4097
|
@ -42,6 +42,8 @@ iabbrev fmtpl fmt.Println("")<esc>hi
|
||||||
iabbrev fmtpf fmt.Printf("\n")<esc>3hi
|
iabbrev fmtpf fmt.Printf("\n")<esc>3hi
|
||||||
iabbrev mk make([]MyType, 0)<esc>9h
|
iabbrev mk make([]MyType, 0)<esc>9h
|
||||||
iabbrev wr w http.ResponseWriter, r *http.Request
|
iabbrev wr w http.ResponseWriter, r *http.Request
|
||||||
|
iabbrev httph http.Handler
|
||||||
|
iabbrev httphf http.HandlerFunc
|
||||||
iabbrev fttt <ESC>ccfunc TestSomething(t *testing.T) {<cr>}<esc>k9l
|
iabbrev fttt <ESC>ccfunc TestSomething(t *testing.T) {<cr>}<esc>k9l
|
||||||
iabbrev ttt t *testing.T
|
iabbrev ttt t *testing.T
|
||||||
iabbrev errP <esc>ccif err != nil {<cr>panic(err)<cr>}
|
iabbrev errP <esc>ccif err != nil {<cr>panic(err)<cr>}
|
||||||
|
|
2
vimrc
2
vimrc
|
@ -117,7 +117,7 @@ function! ToggleQuickFix()
|
||||||
cclose
|
cclose
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
nmap <silent> <leader>q call ToggleQuickFix()<cr>
|
nmap <silent> <leader>q :call ToggleQuickFix()<cr>
|
||||||
nmap <silent> <leader>l :lclose<cr>
|
nmap <silent> <leader>l :lclose<cr>
|
||||||
|
|
||||||
" vim-ripgrep configuration:
|
" vim-ripgrep configuration:
|
||||||
|
|
Loading…
Reference in New Issue