diff --git a/autoload/coc/util.vim b/autoload/coc/util.vim index 0ebeeaa5f39..5478f149b5f 100644 --- a/autoload/coc/util.vim +++ b/autoload/coc/util.vim @@ -172,7 +172,7 @@ function! coc#util#jump(cmd, filepath, ...) abort elseif a:cmd ==# 'edit' && bufloaded(file) exe 'b '.bufnr(file) else - call s:safer_open(a:cmd, file) + call timer_start(s:is_vim ? 10 : 0, { -> s:safer_open(a:cmd, file)}) endif if !empty(get(a:, 1, [])) let line = getline(a:1[0] + 1)