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
If you're having problems with screen update operations (^L
, scrolling, etc) being slow, your problem may be an inefficient syntax highlighting file. You can test this by temporarily disabling syntax highlighting (:syn off
) and seeing if the problem goes away; if you want to dig into the details, you can profile the current syntax file using :syntime
:
:syntime on
to start profiling.:syntime report
to generate a report. The patterns listed first in the report are the ones which took the most time to process.