vim 插件 慢
Vim itself is very fast. But it turns to be slow after enabling some plugins. How to find which plugin leads the slowness of Vim?
Vim本身非常快。 但是启用某些插件后,它变慢了。 如何找到哪个插件导致Vim的运行缓慢?
You may use the profiling mechanisms in Vim. Please check a tutorial on profiling Vim.
您可以在Vim中使用分析机制。 请查看有关分析Vim的教程 。
For profiling Vim startup:
要分析Vim启动:
vim --startuptime profile.log
For profiling certain actions in Vim:
要在Vim中分析某些动作:
:profilestart profile.log
:profile func *
:profile file *
do actions here
在这里做动作
:profile pause
:wq
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
vim 插件 慢