Recently I've been editing a number of xml files - and I've found vim
lagging sorely behind my scrolling when I hold down j or k. My computer
is less than 6 months old and quite quick, which had me wondering why vim
was so slow. Disabling syntax highlighting proved to solve the problem -
but I was wondering, has anyone else hit this problem, and perhaps created
a reduced functionality xml syntax highlighter - so I still get something
useful, but maybe not quite as complex?
(Even better, of course, would be a setting to reduce the functionality of
the existing syntax file...)
Thanks very much,
John
One person's opinion of what constitutes "stripped down" would likely
differ from someone else's opinion, which is the problem. Eg, you might
be happy with just tagstoff being one color, and textstoff being a
different color. Someone else might want attributes to be a 3rd color.
Someone else would make comments a different color. Before you know it,
you'd have a "stripped down" syntax file that's maybe 80% of the
original, not saving much.
<shrug/>
I personally run into this most frequently when editing an XML file
with really long lines.
I just adjust 'synmaxcol' to something like 128 and Vim speeds right
back up. The trade-off being that only the first 128 characters in a
line are highlighted.
Read
:help 'synmaxcol'
for more info.
--
Erik Falor
Registered Linux User #445632 http://counter.li.org
John