Loading ...
Sorry, an error occurred while loading the content.
 

Re: Vim hang when XML syntax highlighting very long lines?

Expand Messages
  • Bram Moolenaar
    ... This is a known problem. Long XML lines are simply too complicated to do syntax highlighting for (without tricks). I am still thinking of a way to speed
    Message 1 of 2 , Feb 26, 2004
      Andrew Kephart wrote:

      > I haven't been able to find this in the archives, so please
      > forgive me if this has been mentioned before...
      >
      > I've noticed a hang in vim (6.2.120) when syntax highlighting
      > an XML file with really long (>8000char) lines.
      >
      > Whenever one of these really long lines is brought onscreen,
      > vim hangs (or, more precisely, pauses for a long time; ~30sec).
      >
      > If I turn off syntax highlighting, there's no problem; if I
      > change the filetype (to html, for example), there's no problem.
      >
      > Any suggestions?

      This is a known problem. Long XML lines are simply too complicated to
      do syntax highlighting for (without tricks). I am still thinking of a
      way to speed it up.

      --
      Microsoft: "Windows NT 4.0 now has the same user-interface as Windows 95"
      Windows 95: "Press CTRL-ALT-DEL to reboot"
      Windows NT 4.0: "Press CTRL-ALT-DEL to login"

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
    Your message has been successfully submitted and would be delivered to recipients shortly.