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.
I attached a very small xml file for test. -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 唐詩217 李商隱 無題二首之一 鳳尾香羅薄幾重 碧文圓頂夜深縫 扇裁月魄羞難掩 車走雷聲語未通 曾是寂寥金燼暗 斷無消息石榴紅 斑騅只繫垂楊岸 何處西南任好風 --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE abiword PUBLIC "-//ABISOURCE//DTD AWML 1.0 Strict//EN" "http://www.abisource.com/awml.dtd"> <abiword template="false" styles="unlocked" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:math="http://www.w3.org/1998/Math/MathML" xid-max="8" xmlns:dc="http://purl.org/dc/elements/1.1/" fileformat="1.0" xmlns:svg="http://www.w3.org/2000/svg" xmlns:awml="http://www.abisource.com/awml.dtd" xmlns="http://www.abisource.com/awml.dtd" xmlns:xlink="http://www.w3.org/1999/xlink" version="0.99.2" xml:space="preserve" props="dom-dir:ltr; document-footnote-restart-section:0; document-endnote-type:numeric; document-endnote-place-enddoc:1; document-endnote-initial:1; lang:en-US; document-endnote-restart-section:0; document-footnote-restart-page:0; document-footnote-type:numeric; document-footnote-initial:1; document-endnote-place-endsection:0"> <!-- ======================================================================== --> <!-- This file is an AbiWord document. --> <!-- AbiWord is a free, Open Source word processor. --> <!-- More information about AbiWord is available at http://www.abisource.com/ --> <!-- You should not edit this file by hand. --> <!-- ======================================================================== --> <metadata> <m key="dc.format">application/x-abiword</m> <m key="abiword.generator">AbiWord</m> </metadata> <history version="1" edit-time="143" last-saved="1231769748" uid="2d158826-e0b3-11dd-8496-ceb035156980"> <version id="1" started="1231769748" uid="82506298-e0b3-11dd-8496-ceb035156980" auto="0" top-xid="8"/> </history> <styles> <s type="P" name="Normal" followedby="Current Settings" props="font-family:Times New Roman; margin-top:0pt; color:000000; margin-left:0pt; text-position:normal; widows:2; font-style:normal; text-indent:0in; font-variant:normal; font-weight:normal; margin-right:0pt; font-size:12pt; text-decoration:none; margin-bottom:0pt; line-height:1.0; bgcolor:transparent; text-align:left; font-stretch:normal"/> <s type="C" name="Reference" props="font-size:10pt"/> </styles> <pagesize pagetype="Letter" orientation="portrait" width="8.500000" height="11.000000" units="in" page-scale="1.000000"/> <section xid="7" props="page-margin-footer:0.5in; page-margin-header:0.5in"> <p style="Normal" xid="8"><c props="font-family:華康標準宋體">test test test</c><c props="font-family:華康標準宋體; font-size:12pt; color:000000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">test test test</c></p> <p style="Normal" xid="1"><c></c>foo bar<c props="font-family:Times New Roman; font-size:12pt; color:000000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">foo barfoo barfoo barfoo barfoo barfoo barfoo barfoo barfoo </c></p> <p style="Normal" xid="2" props="font-family:華康標準宋體; font-size:12pt; color:000000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal"><c props="font-family:華康標準宋體; font-size:12pt; color:000000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">test test testtest test test</c></p> <p style="Normal" xid="3" props="font-family:華康標準宋體; dom-dir:ltr; margin-bottom:0.0000in; margin-left:0.0000in; lang:en-US; text-position:normal; font-weight:normal; text-decoration:none; line-height:1.000000; font-style:normal; margin-top:0.0000in; margin-right:0.0000in; color:000000; text-align:left; text-indent:0.0000in; font-size:12pt"><c props="font-family:Times New Roman; font-size:12pt; lang:en-US; text-position:normal; font-weight:normal; font-style:normal; text-decoration:none">foo barfoo barfoo barfoo barfoo barfoo barfoo barfoo barfoo barfoo </c><br/><c props="font-family:華康標準宋體; font-size:12pt; color:000000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">test test testtest test test</c></p> <p style="Normal" xid="4" props="font-family:Times New Roman; dom-dir:ltr; font-style:normal; margin-left:0.0000in; lang:en-US; margin-bottom:0.0000in; text-indent:0.0000in; text-position:normal; margin-top:0.0000in; font-weight:normal; margin-right:0.0000in; text-decoration:none; text-align:left; line-height:1.000000; font-size:12pt"><c props="font-family:Times New Roman; font-size:12pt; lang:en-US; text-position:normal; font-weight:normal; font-style:normal; text-decoration:none">foo barfoo barfoo barfoo barfoo barfoo barfoo barfoo barfoo barfoo </c></p> <p style="Normal" xid="5" props="font-family:華康標準宋體; dom-dir:ltr; margin-bottom:0.0000in; margin-left:0.0000in; lang:en-US; text-position:normal; font-weight:normal; text-decoration:none; line-height:1.000000; font-style:normal; margin-top:0.0000in; margin-right:0.0000in; color:000000; text-align:left; text-indent:0.0000in; font-size:12pt"><c props="font-family:華康標準宋體; font-size:12pt; color:000000; text-decoration:none; text-position:normal; font-weight:normal; font-style:normal; lang:en-US">test test testtest test test</c></p> <p style="Normal" xid="6" props="font-family:Times New Roman; dom-dir:ltr; font-style:normal; margin-left:0.0000in; lang:en-US; margin-bottom:0.0000in; text-indent:0.0000in; text-position:normal; margin-top:0.0000in; font-weight:normal; margin-right:0.0000in; text-decoration:none; text-align:left; line-height:1.000000; font-size:12pt"><c props="font-family:Times New Roman; font-size:12pt; lang:en-US; text-position:normal; font-weight:normal; font-style:normal; text-decoration:none">foo barfoo barfoo barfoo barfoo barfoo barfoo barfoo barfoo barfoo </c></p> </section> </abiword>