:set matchpairs+=<:> That adds < and > as a pair to be matched by %, and also by the MatchParen script in vim 7.0.
Hope that helps! Max > -----Original Message----- > From: Peng Yu [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 13, 2006 5:41 PM > To: [email protected] > Subject: How pair <> in vim? > > Hi, > > For the () pair and {} pair, I can use % to jump in between. However, > vim doesn't think < and > are a pair, which is heavily used in C++ > templates. I'm wondering how to adjust vim's behavior such that I can > jump between < and >? > > Thanks, > Peng
