How to see which plugins are making Vim slow?

前端 未结 6 2064
天命终不由人
天命终不由人 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 00:42

    I found another very helpful vim buildin method to show the exactly timing messages while loading your .vimrc.

    vim --startuptime timeCost.txt timeCost.txt
    

    Please run:

    :help --startuptime
    

    in VIM to get more information.

提交回复
热议问题