Gregory Margo wrote:
> On Mon, Nov 02, 2009 at 09:13:31AM -0500, Charles Campbell wrote:
>   
>>>> Its available at my website as v2g:
>>>>    http://mysite.verizon.net/astronaut/vim/index.html#RAINBOW
>>>>         
>
> Is there documentation for Rainbow.vba (v2m)?
> The rainbow.vvim (why vvim?) mentions doc/Rainbow.txt but it's not in
> the .vba file.
>   
Hmm, you're right -- looks like doc/Rainbow.txt mistakenly got left 
off.  I've put v2n on my website; the help file for it is now there.

There are four files:

plugin/RainbowPlugin.vim
autoload/Rainbow.vim
after/syntax/c/rainbow.vvim
doc/Rainbow.txt

The RainbowPlugin.vim contains the always-loaded script; the essential 
part of it is a one liner which introduces the Rainbow command.

The autoload/Rainbow.vim contains a small function which 
enables/disables rainbow highlighting.

The extra highlighting commands are contained in 
after/syntax/c/rainbow.vvim.  Its got the "vvim" suffix to prevent it 
from being "always-loaded"; instead, its only sourced on demand (via the 
:Rainbow command).  It could've been put anywhere, but as it is syntax 
that is loaded after the main c/c++ highlighting, that seemed a logical 
place to put it.  As Meino found out, by renaming it to rainbow.vim, it 
is always loaded (thereby effectively disabling the :Rainbow command).  
I personally only use the rainbow highlighting occasionally, finding it 
somewhat distracting when I'm not actively in need of seeing which 
braces go with which braces.

Regards,
Chip Campbell



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

Reply via email to