如何在后台首次运行/调用CtrlP-VIM [英] How to run/call CtrlP first time in the background - VIM

查看:174
本文介绍了如何在后台首次运行/调用CtrlP-VIM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首次调用 CtrlP 时,这会导致构建缓存相当长的时间.有没有办法在后台运行它,这样我就可以继续在vim中做事了?

When calling CtrlP for the first time it cause quite a delay to build the cache. Is there a way to run it in the background so I can continue doing stuff in vim?

推荐答案

实际上,您不能这样做, vim是' t多线程.

You cannot do that, in fact, vim isn't multi-threaded.

您可以查看多线程的 NeoVim .

或者,您可以使用 Unite 插件和file_rec/async命令:

Alternativly, you could use the Unite plugin and the file_rec/async command :

注意:对于大型项目,这可能会导致一些性能问题. 通常,建议使用| unite-source-file_rec/async |. 源,需要| vimproc |.

Note: with large projects this may cause some performance problems. Normally it is recommended to use |unite-source-file_rec/async| source, which requires |vimproc|.

这篇关于如何在后台首次运行/调用CtrlP-VIM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆