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 by one to check which plugin is the culprit, but is there a faster way?
My dotvim is here: https://github.com/charlax/dotvim
Best Answer
You can use built-in profiling support: after launching vim do
(unlike quitting
noautocmd
is not really required, it just makes vim quit faster).Note: you won’t get information about functions there were deleted before vim quit.