Vim response quite slow

后端 未结 5 2077
一向
一向 2021-02-06 01:03

If I open a file containing 5,000 lines of code and continue to input, I found that my vim became very slow, it displays my input after about 1s.

It even won\'t become

5条回答
  •  无人及你
    2021-02-06 01:34

    If running vim 7.4,

    put this in your .vimrc

    set regexpengine=1

    vim 7.4 has a new regex engine that appear not to work well in some situations. Previous version vim 7.3 used the old engine ( set regexpengine=1 ).

    The "slow response" from syntax highlighting problem affects the vim help files as well ( and .vimrc file too ).

提交回复
热议问题