Friday, January 22, 2010

Re: How can Vim highlight the matching tag when I put the cursor on the other one in a pair of tags ?

What I really want is to highlight the matching HTML tags.

Thanks anyway.

2010/1/16 Charles Campbell <Charles.E.Campbell@nasa.gov>
Tony Mechelynck wrote:
On 08/12/09 06:15, Lenin Lee wrote:
I know this plugin, but it only jumps from one tag to its corresponding
one, what I want is to highlight the corresponding tag.

Any ideas ?

AFAIK, there isn't (yet), but it ought to be possible to write a replacement for the matchparen plugin which would highlight (if within the window) whatever matchit (if installed) would jump to on a % keyhit. (If matchit is not installed, fall back to the present behaviour.)

Does  HiMtchBrkt  do what you're wanting?  It only handles () [] {}, not generic matchparen style tags, though.

You can get <HiMtchBrkt.vim> from

  http://vim.sourceforge.net/scripts/script.php?script_id=1435   (stable)
  http://mysite.verizon.net/astronaut/vim/index.html#HIMTCHBRKT  (cutting edge)

Regards,
Chip Campbell


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php



--
初从文,三年不第。遂习武,校场发一矢,中鼓吏,逐之出。后学医,有所成,自撰一良方,服之,卒。

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: