分析Vim启动时间 [英] Profiling Vim startup time
本文介绍了分析Vim启动时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Vim时,我已经启用了很多插件 - 多年来我已经收集了插件。我有点厌倦了Vim从现在开始需要多长时间,所以我想简要介绍一下它的启动,看看我有多少插件是负责的。
I’ve got a lot of plugins enabled when using Vim – I have collected plugins over the years. I’m a bit fed up with how long Vim takes to start now, so I’d like to profile its startup and see which of the many plugins I have are responsible.
有什么办法来描述Vim的启动或脚本运行吗?理想情况下,我想知道Vim在每个Vim脚本中花费的时间。
Is there any way to profile Vim’s startup or script-running? Ideally I’d like to know how long Vim spends in each Vim script it loads.
推荐答案
如果您使用Vim 7.2 .269或更高版本,那么你可以使用--startuptime选项。
If you're using Vim 7.2.269 or later, then there's the --startuptime option you can use.
vim --startuptime vim.log
从帮助( vim -h
): p>
from the help (vim -h
):
--startuptime <file> Write startup timing messages to <file>
这篇关于分析Vim启动时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文