Update vim config

This commit is contained in:
Rob Watson 2021-02-23 13:42:59 +01:00
parent b556b974a3
commit 33362f4097
2 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,8 @@ 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 httph http.Handler
iabbrev httphf http.HandlerFunc
iabbrev fttt <ESC>ccfunc TestSomething(t *testing.T) {<cr>}<esc>k9l
iabbrev ttt t *testing.T
iabbrev errP <esc>ccif err != nil {<cr>panic(err)<cr>}

2
vimrc
View File

@ -117,7 +117,7 @@ function! ToggleQuickFix()
cclose
endif
endfunction
nmap <silent> <leader>q call ToggleQuickFix()<cr>
nmap <silent> <leader>q :call ToggleQuickFix()<cr>
nmap <silent> <leader>l :lclose<cr>
" vim-ripgrep configuration: