From 4e354ef185b23dc9ba26f013b5eeb3870fc2a4dc Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 7 Oct 2020 23:54:36 +0800 Subject: [PATCH] move completion-related mapping to mappings.vim --- mappings.vim | 4 ++++ plugins.vim | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mappings.vim b/mappings.vim index 2647e76..2c8bf65 100644 --- a/mappings.vim +++ b/mappings.vim @@ -106,6 +106,10 @@ inoremap ((pumvisible())?("\"):("\")) " Use to close auto-completion menu inoremap ((pumvisible())?("\"):("\")) +" Tab-complete, see https://vi.stackexchange.com/q/19675/15292. +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\" : "\" + " Edit and reload init.vim quickly nnoremap ev :tabnew $MYVIMRC tcd %:h nnoremap sv :silent update $MYVIMRC source $MYVIMRC diff --git a/plugins.vim b/plugins.vim index aebe6d2..b30a24f 100644 --- a/plugins.vim +++ b/plugins.vim @@ -355,10 +355,6 @@ call deoplete#custom#option('auto_complete_delay', 100) " Enable deoplete auto-completion call deoplete#custom#option('auto_complete', v:true) -" Tab-complete, see https://vi.stackexchange.com/q/19675/15292. -inoremap pumvisible() ? "\" : "\" -inoremap pumvisible() ? "\" : "\" - """""""""""""""""""""""""UltiSnips settings""""""""""""""""""" " Trigger configuration. Do not use if you use YouCompleteMe let g:UltiSnipsExpandTrigger=''