From bbd0c7e8c034a96b5a4ad49e60809d4abdc3bbb0 Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Thu, 28 Nov 2019 14:51:37 +0100 Subject: [PATCH] better vim keys --- vim/.vimrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index ef19926..87a190f 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -189,10 +189,12 @@ nmap gd (coc-definition) nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) -nmap go (coc-list-outline) +nmap go :CocList outline nnoremap K :call show_documentation() nmap rn (coc-rename) +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\" : "\" function! s:show_documentation() if (index(['vim','help'], &filetype) >= 0) @@ -205,13 +207,15 @@ endfunction nmap :Clap files nmap b :Clap buffers +imap (minisnip) + if has("autocmd") autocmd FileType go nmap b (go-build) autocmd FileType go nmap r (go-run) autocmd FileType go nmap t (go-test) autocmd FileType go nmap T (go-test-func) autocmd FileType go nmap c (go-coverage) - autocmd FileType go nmap cc (go-coverage-clean) + autocmd FileType go nmap cc (go-coverage-clear) autocmd FileType go nmap a (go-alternate-edit) autocmd FileType go nmap f (go-fmt) autocmd FileType go nmap d (go-def)