How to see which plugins are making Vim slow?

前端 未结 6 2051
天命终不由人
天命终不由人 2020-11-27 23:48

Is there a way to profile Vim plugins?

My MacVim becomes slower and slower when I open a large .py. I know I could deselect all plugins and reselect one

6条回答
  •  北海茫月
    2020-11-28 00:33

    A very simple solution: Find one slow command. Move one plugin to /tmp/. Try the command again. If it's still slow, move another plugin to /tmp/. Repeat, until you find the plugin that makes the command slow.

提交回复
热议问题