我在 vim 中遇到启动时间慢的问题。我使用该--startuptime标志进行调查,输出如下:
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.003 000.003: --- VIM STARTING ---
000.082 000.079: Allocated generic buffers
000.103 000.021: locale set
000.112 000.009: GUI prepared
000.115 000.003: clipboard setup
000.119 000.004: window checked
000.496 000.377: inits 1
000.513 000.017: parsing arguments
000.514 000.001: expanding arguments
000.527 000.013: shell init
1000.786 1000.259: xsmp init
1001.055 000.269: Termcap init
1001.108 000.053: inits 2
1001.315 000.207: init highlight
1001.702 000.298 000.298: sourcing …Run Code Online (Sandbox Code Playgroud)