Monday, 15 June 2015

How to determine the reason vim freezes -



How to determine the reason vim freezes -

while using vim editor freezes min @ random moments , while happens vim uses 100% of 1 of cores.

the problem don't want go through disabling , enabling in order find if there plugin causing it. reason want more optimal understand improve how troubleshoot vim problems. , due randomness of freezes cannot reproduce problem, when disable plugin there no way me know if fixed problem.

is there fast general way determine plugin or .vimrc command causing such problems? or way reproduce freeze?

i tried attaching process when freeze happened see if plugin or function occupies cpu cycles didn't helped.

as vim "unfreezes" after time, doesn't go endless loop or crashes. so, vim "just" spends inacceptably long time in function. should able find out via profiling. unfortunately, default builds don't have built-in; need huge build of vim; windows, can such binaries cream project. see :help profiling.

also, can capture total log of vim session vim -v20vimlog. when freeze occurs, quit vim , inspect lastly lines of log see vim doing, or monitor log tail -f.

vim

No comments:

Post a Comment