From 79c8718ae750969835b3f82dfbe05301445474e3 Mon Sep 17 00:00:00 2001 From: Bo Jeanes Date: Mon, 24 Aug 2020 14:30:39 +1000 Subject: [PATCH] [vim] Select tab completion with Enter --- editors/vim/vimrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/editors/vim/vimrc b/editors/vim/vimrc index 45ea35b..5f7967e 100644 --- a/editors/vim/vimrc +++ b/editors/vim/vimrc @@ -225,6 +225,9 @@ inoremap coc#refresh() " Coc only does snippet and additional edit on confirm. "inoremap pumvisible() ? "\" : "\u\" " NOTE: above mapping disabled due to https://github.com/tpope/vim-endwise/issues/22#issuecomment-446042476 +let g:endwise_no_mappings = v:true +inoremap CustomCocCR pumvisible() ? coc#_select_confirm() : "\u\\=coc#on_enter()\" +imap CustomCocCRDiscretionaryEnd " Use `[c` and `]c` for navigate diagnostics nmap [c (coc-diagnostic-prev) @@ -343,8 +346,6 @@ syntax on set wildmode=list:longest,list:full set wildignore+=*.o,*.obj,.git,*.rbc,*.swp - map > - map < nmap :tabnew " Navigate cursor up/down by lines on screen, not lines in file