On Thu, 4 Jan 2007, Charles E Campbell Jr wrote: > Hugh Sasse wrote: > > > On Thu, 4 Jan 2007, Charles E Campbell Jr wrote: > > > > > > > Hugh Sasse wrote: > > > > > > > > > > I am interested in exploring Lisp before too long. However, I have a > > > > physical problem with the parentheses. > > > > > > > > > > > You may find rainbow.vim helpful; see > > > > > > http://mysite.verizon.net/astronaut/vim/index.html#RAINBOW > > > > > > > that looks interesting. Done the vimball bit then I try to install > > rainbow.vba (having gunzipped it); > > [Error reports trimmed] > > > > So that means it only applies to C files out of the box? > > > > Its been awhile since I wrote the rainbow stuff; I'd forgotten that I'd > already included it with vim 7.0's syntax/lisp.vim. > Just put > > let g:lisp_rainbow= 1 > > in your <.vimrc> and it'll be enabled for Lisp.
Thank you. > > > I think it would be more useful it it were setup as a plugin > > one could use for Perl, Ruby, (your later message covers lisp), etc > > > The rainbow highlighting needs to be attuned to the specific syntax > highlighting files for each language. > Its done by assigning a region which begins with ( and ends with ). To retain > normal highlighting inside > such syntax highlighting regions, the region must "contain" language-specific > highlighting regions. Oh, right. I hadn't explored the internals. I'll have a look later... > > So, Perl and Ruby would need specialized versions of rainbow.vim. I use Perl > but seldom, and don't know Ruby, I use Ruby much more than Perl these days, so I'll see if I can do anything useful along these lines. I've done small things with the syntax files before, so I'll see if I'm biting off more than I can chew here :-) It will be useful to learn how you've made this user selectable, rather than the default, so I can separate concerns in future. > and yours is the first request for rainbow highlighting for those languages > I've received. I don't know how big the intersect is between the set of vim users and the set of people with nystagmus :-) Ruby is light on parentheses in the way that Perl is, but sometimes.... > [...] > > Your web page has: [...] > > > > Yep! Definitely a mistake. Thank you for catching it! glad I could help. > > Regards, > Chip Campbell > Thank you, Hugh