From f1ff883096fbcb31b60164c4ecca90ab2734678d Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 17 Feb 2020 16:51:37 +0000 Subject: [PATCH] Update vim config --- .vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index fbdc74c..3e2dfb5 100644 --- a/.vimrc +++ b/.vimrc @@ -33,6 +33,7 @@ set noswapfile set viminfo='20,\"100 "max 100 lines in registers set cmdheight=2 +set novisualbell " sudo save command! W execute 'w !sudo tee % > /dev/null' edit! @@ -67,14 +68,15 @@ inoremap \ pumvisible() ? "\" : \ check_back_space() ? "\" : \ coc#refresh() -inoremap pumvisible() ? "\" : "\" + inoremap pumvisible() ? "\" : "\" function! s:check_back_space() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~# '\s' endfunction -inoremap coc#refresh() +" use @ instead of space +inoremap coc#refresh() if has('patch8.1.1068') inoremap complete_info()["selected"] != "-1" ? "\" : "\u\"