From: Jerry Blanco Date: 2007-06-03T03:21:25+09:00 Subject: Re: Why not adopt "Python Style" indentation for Ruby? If you install the Vim/Ruby (http://vim-ruby.rubyforge.org/) plugins it'll work with % and do/end. Also, if you :set sm it will highlight briefly the opening of a block by the cursor going there and back really quickly AND setting the opening and closing markers in a different color. There are some options with sm (showmatch) that I don't recall. Do :help showmatch in Vim for details. My experience with Vim is that if you can think of ANYTHING for Vim to do, chances are someone thought of it and created a plugin for it (yes, you can play tetris and sokoban with vim -> (http://www.vim.org/scripts/script_search_results.php?keywords=tetris&script_type=&order_by=rating&direction=descending&search=search). If you haven't, I'd suggest checking the scripts section in vim.org (http://www.vim.org/scripts/index.php). Also, use the search (http://www.vim.org/search.php) to look for plugins. HTH Jerry. On 6/1/07, Rick DeNatale wrote: > On 6/1/07, Keith Fahlgren wrote: > > On 6/1/07, Rick DeNatale wrote: > > > > % works, but I'm using a ruby-matchit plugin I found on vim.org. I'm > > > > not sure if this is the same as the dist that a few guys have been > > > > working on at rubyforge. > > > > > > % in vim does something related to what he's asking for, but it > > > doesn't automatically highlight the matching token when the cursor > > > lands on it's mate. G?Vim will do this for single character matching > > > tokens like ( ), [] and {}, as you move the cursor over one of these > > > it will highlight its mate if it doesn't have to scroll to do so. > > > > Actually, mate-highlighting was added in vim 7: > > http://vimdoc.sourceforge.net/htmldoc/pi_paren.html#matchparen > > Right, which is what I use. And as I said, it only highlights pairs > of single character delimiters which are unequal, it can't highlight > do/end or "/". > > -- > Rick DeNatale > > My blog on Ruby > http://talklikeaduck.denhaven2.com/ > > -- /(bb|[^b]{2})/ <- The question