Is there anything I can do to keep syntax on
when using Vim?
As soon as I open anything substantial it becomes nearly impossible to edit after a while. Every keypress causes a delay. If I turn syntax highlighting off or relaunch vim – it is fine again.
I have synmaxcol
set to 120. Sample ruby file is only 59 lines long and not exceeding 80 characters.
I am using vim-ruby
and vim-rails
.
The problem is that the delay seem to accumulate over time. When I open the file from scratch it is fine. After a while it gets slower and slower.
vim -Nu NONE -c 'syntax on'
? Have you followed the debugging tips on this post-u NONE
so it must be some plugin then. Guess the answer to most questions is 'disable plugins until you find the culprit' :(