I edit a lot of xml files with vim. The problem is that, because of the long lines, navigation/editing in vim is extremely slow. Is there something I can do (besides turning off
How about pretty-printing your XML file (if the line length is the real problem)? You could do that e.g. using xmllint
which is part of the Gnome libxml2 package (and there is also a version available for Windows).
You can pretty-print in-place by executing
xmllint --format -o xmlFile.xml xmlFile.xml