Vim's autocomplete is excruciatingly slow

后端 未结 3 953
难免孤独
难免孤独 2021-01-29 22:08

Most of the time the autocomplete feature in Vim works nicely for me, but sometimes it seems to be scanning files which the current file references, and then it becomes painfull

3条回答
  •  一个人的身影
    2021-01-29 22:53

    Had a very similar problem since upgrading to Vim 7.3 (from 7.2): I was using the (excellent) ACP plugin and in longer source files (C-files, 1700 LOC), the popup took ages to jump through the suggestions when I was editing near the bottom of the file.

    Using the PerformanceValidator (from Softwareverify), I found out that some fold methods were called again and again and lead to very high processor load and slow completion.

    My workaround was to set the foldmethod (fdm) to manual. And this solved it...

提交回复
热议问题