Editing xml files with long lines is really slow in vim. What can I do to fix this?

后端 未结 13 960
情书的邮戳
情书的邮戳 2021-01-31 02:24

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

13条回答
  •  难免孤独
    2021-01-31 02:47

    There is a plugin, LargeFile for the job. It disables some events, syntax highlighting and even undo. You did not mention about the size of the XML files, but the plugin is configurable. You can set the size of a "large file" in megabytes so that "files that are not large" can be treated normally.

提交回复
热议问题