[feat] add golang iferr key binding

This commit is contained in:
Jay 2021-02-23 22:17:58 +08:00
parent 687272ed26
commit 246b7300bc

1
.vimrc
View File

@ -397,6 +397,7 @@ let g:tagbar_type_go = {
" vim-go setting
autocmd FileType go nmap tgd <Plug>(go-def-tab)
autocmd FileType go nmap <leader>err <Plug>(go-iferr)
au FileType go imap <c-y>e <Plug>(go-iferr)
let g:go_fmt_fail_silently = 1
let g:go_fmt_command = "goimports"
let g:go_def_mode = 'godef'