0

Syntax highlighting slowing my vim down. I set

syntax sync maxlines=100
syntax sync minlines=100

Now i need to execute

:syntax off
:syntax on

After every new file getting opened to save performance. How can i do it? May there is better solution?

2
  • I'd say it's unlikely that syntax highlighting is slowing you down. Try to disable you plugins or maybe you can describe your issue better.
    – laktak
    Mar 28, 2017 at 15:40
  • @laktak I tried to switch syntax off and vim started working faster. Then if I switch syntax back it slows down again (but if file isn't large it works well). Terrible lags appear if I edit html
    – IC_
    Mar 28, 2017 at 23:47

1 Answer 1

2

My vim was slowing down because of Plugin 'Yggdroot/indentLine'. @laktak you was right

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.