The simplest and most effective solution I've found is to simply turn off syntax highlighting:
syntax off
This seems to be the culprit when working with long lines. Also, from my experience with vim and xml, the file size doesn't seem to matter - these are long lines that cause these recessions.
Another useful task is to wrap areas with long lines in folds :
<text>A reeealy long line</text>
Closing bends saves you from parsing the syntax of these lines. Of course, this approach is not always practical, but it worked fine when I had only a few long lines, or they were in a specific area of ββthe file.
Often Vim is still noticeably slower, but in most cases the performance becomes acceptable.
Mihai Rotaru Jul 31. '12 at 16:12 2012-07-31 16:12
source share