Vim加载和格式化缓慢

时间:2017-02-12 13:55:51

标签: vim vim-plugin

我正在使用带有许多插件的vim,.vimrc文件有很多插件,但是它非常快,突然由于某种原因它不再存在,不确定可能是在我开始使用eslinter之后,每次保存文件或在新选项卡中打开文件大约需要两秒钟。 有什么方法可以找到导致所有延迟的插件吗?

FUNCTIONS SORTED ON TOTAL TIME 
count  total (s)   self (s)  function
    1   1.193202   0.000100  <SNR>67_BufWritePostHook()
    1   1.192941   0.000469  <SNR>67_UpdateErrors()
    1   1.188491   0.000942  <SNR>67_CacheErrors()
    1   1.184402   0.000040  287()
    1   1.184210   0.000254  286()
    1   1.183663   0.000135  SyntaxCheckers_javascript_eslint_GetLocList()
    1   1.182540   0.000674  SyntasticMake()
    1   1.181614   0.000483  syntastic#util#system()
    3   0.023413   0.000393  airline#extensions#tabline#get()
    3   0.023020   0.001615  airline#extensions#tabline#tabs#get()
   12   0.022842   0.010081  <SNR>180_parse_screen()
    2   0.018991   0.003055  381()
   12   0.012386             <SNR>180_create_matches()
   12   0.011903   0.002183  <SNR>172_OnCursorMovedNormalMode()
    8   0.011681   0.000275  <SNR>157_get_seperator()
   14   0.010961   0.010719  <SNR>172_OnFileReadyToParse()
   46   0.009832   0.003413  airline#highlighter#get_highlight()
   10   0.009530   0.000443  <SNR>157_get_transitioned_seperator()
   10   0.009087   0.000364  airline#highlighter#add_separator()
   10   0.008723   0.000830  <SNR>153_exec_separator()

FUNCTIONS SORTED ON SELF TIME 
count  total (s)   self (s)  function
   12              0.012386  <SNR>180_create_matches()
   14   0.010961   0.010719  <SNR>172_OnFileReadyToParse()
   12   0.022842   0.010081  <SNR>180_parse_screen()
   92              0.005751  <SNR>153_get_syn()
   46   0.009832   0.003413  airline#highlighter#get_highlight()
   13              0.003297  <SNR>123_Highlight_Matching_Pair()
    2   0.018991   0.003055  381()
    1   0.002336   0.002331  gitgutter#sign#remove_signs()
   12   0.011903   0.002183  <SNR>172_OnCursorMovedNormalMode()
    3              0.001629  airline#extensions#tabline#tabs#map_keys()
    3   0.023020   0.001615  airline#extensions#tabline#tabs#get()
    1   0.001750   0.001601  gitgutter#async#execute()
   12              0.001445  <SNR>146_update()
    1   0.001305   0.001302  gitgutter#sign#find_current_signs()
   12              0.001276  <SNR>157_get_accented_line()
   14              0.001155  <SNR>172_AllowedToCompleteInBuffer()
   10   0.003474   0.001059  airline#highlighter#exec()
    2   0.001717   0.000985  xolox#misc#cursorhold#autocmd()
    1   0.002802   0.000983  347()
    1   0.001208   0.000966  gitgutter#sign#upsert_new_gitgutter_signs()

0 个答案:

没有答案