2024-10-04 08:55:11 +02:00

8 lines
264 B
VimL

function! OpenCompletion()
if !pumvisible() && ((v:char >= 'a' && v:char <= 'z') || (v:char >= 'A' && v:char <= 'Z'))
call feedkeys("\<C-x>\<C-o>", "n")
endif
endfunction
autocmd InsertCharPre * if &omnifunc != "" | call OpenCompletion() | endif