sponsor Vim development Vim logo Vim Book Ad

ShowPairs : Highlights the matching pair surrounding the current cursor location.

 script karma  Rating 145/95, Downloaded by 4642    Comments, bugs, improvements  Vim wiki

created by
Anthony Kruize
 
script type
utility
 
description
ShowPairs highlights the matching pair surrounding the current cursor location.  The main goal of this script is to highlight matching braces and parenthesis making it easier to edit nested expressions.
However, ShowPairs uses the 'matchpairs' global option to determine what it should highlight, so it should be generic enough for other needs.
 
install details
Put showpairs.vim into your $HOME/.vim/plugin or $HOME\vimfiles\plugin folder.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
showpairs.vim 2.1 2006-02-07 6.0 Anthony Kruize Fixed errors that occured when the plugin was loaded due to 'fg' and 'bg' not being defined yet, and the fact that I used an autocmd from Vim 7, oops.
Thanks to Alex Kunin for actually letting me know about the problem so I could fix it.
showpairs.vim 1.1 2003-04-27 6.0 Anthony Kruize Fixed the fileformat so it doesn't include ^M's everywhere.
Fixed the highlighting so it works when 'fg' and 'bg' aren't yet defined.
showpairs.vim 1.0 2003-04-22 6.0 Anthony Kruize Initial upload
ip used for rating: 23.20.44.136

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo