On 07/01/12 22:06, Peng Yu wrote:
On Sat, Jan 7, 2012 at 2:17 PM, Gary Johnson<[email protected]>  wrote:
On 2012-01-07, Peng Yu wrote:
What is the output from this command?

    :verbose set matchpairs?

Here is the output.

:verbose set match
matchpairs  matchtime
   matchpairs=(:),{:},[:],<:>
         Last set from ~/.vimrc

That's not what I expected, but I think I understand the problem
because I now observe the same problem when I edit an HTML file.
You probably have the matchit.vim plugin enabled.  Execute this
command,

Right, I indeed have it installed. Just to make sure, this is a bug in
html.vim but not in matchit.vim, right?

Actually, IIUC it's a bug in neither — unless the HTML plugin has to care for embedded Javascript and CSS.

() and {} have no meaning whatsoever in HTML (outside embedded scripts in different languages, see below). [] has a meaning as part of a <![CDATA[ ... ]]> pair in some HTML dialects, but IMHO these should be handled as indivisible (possibly by adding ,<![CDATA[:]]> to b:matchpairs) but not as a case of [:]

However, HTML may include CSS inside a <style> element, and CSS knows about paired {}; and it may include JavaScript inside a <script> element, and JavaScript knows about (), {}, and [].


Best regards,
Tony.
--
The temperature of Heaven can be rather accurately computed.  Our
authority is Isaiah 30:26, "Moreover, the light of the Moon shall be as
the light of the Sun and the light of the Sun shall be sevenfold, as
the light of seven days."  Thus Heaven receives from the Moon as much
radiation as we do from the Sun, and in addition 7*7 (49) times as much
as the Earth does from the Sun, or 50 times in all.  The light we
receive from the Moon is one 1/10,000 of the light we receive from the
Sun, so we can ignore that ... The radiation falling on Heaven will
heat it to the point where the heat lost by radiation is just equal to
the heat received by radiation, i.e., Heaven loses 50 times as much
heat as the Earth by radiation.  Using the Stefan-Boltzmann law for
radiation, (_ H/_ E)^4 = 50, where _ E is the absolute temperature of the
earth (~300K), gives _ H as 798K (525C).  The exact temperature of Hell
cannot be computed ... [However] Revelations 21:8 says "But the
fearful, and unbelieving ... shall have their part in the lake which
burneth with fire and brimstone."  A lake of molten brimstone means
that its temperature must be at or below the boiling point, 444.6C.  We
have, then, that Heaven, at 525C is hotter than Hell at 445C.
                -- From "Applied Optics" vol. 11, A14, 1972

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to