2016-04-16 5 views
0

Это похоже на то, что я установил YCM. У меня также есть плагин Python-mode, потому что мне нравится функция lint и «run inside vim», но я отключил «веревку». Мои настройки YCM выглядят следующим образом.Vim замедляется в режиме python после ввода «=» (равно) или «» (в то время как пробел).

31 " Use gcc syntastic checker 
30 let g:ycm_show_diagnostics_ui = 0 
29 
28 " Skip checking of ycm config file at vim startup 
27 let g:ycm_confirm_extra_conf=0 
26 
25 " Includes tags in completion 
24 let g:ycm_collect_identifiers_from_tags_files=1 
23 
22 " Include text in comments and strings 
21 let g:ycm_collect_identifiers_from_comments_and_strings = 0 
20 
19 " Start completion from second char 
18 let g:ycm_min_num_of_chars_for_completion=2 
17 
16 " Disable chache, rebuild every time 
15 let g:ycm_cache_omnifunc=1 
14 
13 " Enable syntax based completion 
12 let g:ycm_seed_identifiers_with_syntax=1 
11 
10 " Enable completion while in comments 
9 let g:ycm_complete_in_comments = 1 
8 
7 " Enable completion while in strings 
6 let g:ycm_complete_in_strings = 1 

Я попытался профилировать vim, но я не получаю подсказки из результата. Ниже приведен мой отчет о профилировании.

0 FUNCTIONS SORTED ON SELF TIME 
    1 count total (s) self (s) function 
    2 60 0.883352 0.782989 <SNR>93_GetCompletions() 
    3 2967 0.905869 0.579009 pymode#folding#expr() 
    4 1997    0.275032 <SNR>110_BlockStart() 
    5 302    0.168611 <SNR>93_Pyeval() 
    6 120 0.968933 0.066387 youcompleteme#Complete() 
    7 1997    0.051828 <SNR>110_BlockEnd() 
    8 76 0.030649 0.028957 <SNR>97_GetNearbyTag() 
    9 154    0.026513 <SNR>69_Highlight_Matching_Pair() 
    10 61    0.025747 <SNR>93_InsideCommentOrString() 
    11 61 0.057955 0.016587 <SNR>93_IdentifierFinishedOperations() 
    12  6 0.013762 0.013707 <SNR>93_OnFileReadyToParse() 
    13 60    0.012566 <SNR>93_OnCompleteDone() 
    14  4    0.011961 <SNR>143_SearchParensPair() 
    15 74 0.040687 0.010170 Powerline#Functions#fugitive#GetBranch() 
    16 76 0.114571 0.009806 <SNR>93_OnCursorMovedInsertMode() 
    17  2 0.006829 0.006792 SyntasticRefreshCursor() 
    18 61 0.040498 0.005477 <SNR>93_InvokeCompletion() 
    19 74    0.005211 308() 
    20 91    0.004580 Pl#Statusline() 
    21 74 0.005954 0.004241 <SNR>59_buffer_spec() 

ответ

1

Vim не выдерживает асинхронное управление заданиями и в основном моно-нить, так что он может сделать только одно за другим. Вы не можете набирать текст во время работы YCM.

Вы должны попробовать NeoVim, которые выдерживают это, это не решит вашу проблему, но сведёт к минимуму ее.

 Смежные вопросы

  • Нет связанных вопросов^_^