Update vim config
parent
f048c146c5
commit
f1ff883096
4
.vimrc
4
.vimrc
|
@ -33,6 +33,7 @@ set noswapfile
|
||||||
set viminfo='20,\"100 "max 100 lines in registers
|
set viminfo='20,\"100 "max 100 lines in registers
|
||||||
|
|
||||||
set cmdheight=2
|
set cmdheight=2
|
||||||
|
set novisualbell
|
||||||
|
|
||||||
" sudo save
|
" sudo save
|
||||||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
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'
|
return !col || getline('.')[col - 1] =~# '\s'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
inoremap <silent><expr> <c-space> coc#refresh()
|
" use @ instead of space
|
||||||
|
inoremap <silent><expr> <c-@> coc#refresh()
|
||||||
|
|
||||||
if has('patch8.1.1068')
|
if has('patch8.1.1068')
|
||||||
inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
|
inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||||
|
|
Loading…
Reference in New Issue