Update vim config

master
Hektor Misplon 2020-02-17 16:51:37 +00:00
parent f048c146c5
commit f1ff883096
1 changed files with 4 additions and 2 deletions

4
.vimrc
View File

@ -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' <bar> edit!
@ -74,7 +75,8 @@ function! s:check_back_space() abort
return !col || getline('.')[col - 1] =~# '\s'
endfunction
inoremap <silent><expr> <c-space> coc#refresh()
" use @ instead of space
inoremap <silent><expr> <c-@> coc#refresh()
if has('patch8.1.1068')
inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"