On Mon, Jan 12, 2009 at 10:25:50PM +0800, bill lam wrote: > When vim open a file and detect its filetype as xml. Vim become very > sluggish even for moving cursor. It only become normal after set ft > to empty. geany (another linux editor) does not have this problem for > xml.
The XML file you attached has very long lines, which can slow down Vim's syntax highlighting. A workaround is to set synmaxcol to a nonzero value so that Vim doesn't attempt to highlight the entire line. The highlighting can get out of sync this way, however. -- Erik Falor Registered Linux User #445632 http://counter.li.org --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---