Syntax highlighting causes terrible lag in Vim

前端 未结 10 1520
孤独总比滥情好
孤独总比滥情好 2020-12-12 11:20

I love Vim. But its giving me hard times right now.

I use a lot of plugins and during the last 6 months, I\'ve found a lot of awesome ones. But my Vim got really slu

10条回答
  •  失恋的感觉
    2020-12-12 12:09

    I'm pretty sure that

    set t_Co=256
    set background=dark
    colorscheme candyman
    

    have nothing to do with that lag. The two first lines are useless (the number of usable colors is defined according to your $TERM and your colorscheme already does set background=dark) but not really harmful.

    Common "Vim is slowing to a crawl" causes include poorly written autocmds, too many autocmds, reloading one's ~/.vimrc too often, poorly written plugins…

    Please post your setup so that we can help you find out why you experience that lag.

提交回复
热议问题