Am Donnerstag, 3. Dezember 2015 23:20:01 UTC+1 schrieb DrChip:
> Eric Christopherson wrote:
> > On Wed, Aug 26, 2015, Fabian Nick wrote:
> >> Hi all,
> >>
> >> ss there a way to highlight if-else-endif structures in Vim on demand 
> >> based on their 'level' in the overall program hierarchy? I.e. I want 
> >> something like
> >>
> >> if <<< highlight in red
> >>    foo
> >> else <<<< red
> >>    if <<< blue
> >>       baz
> >>       bar
> >>    endif <<< blue
> >> endif <<< red
> >>
> >> I'm mostly editing FORTRAN code, but I guess this feature would be pretty 
> >> generic, as long as the syntax highlighting works for the given language...
> > That sounds like the various "rainbow parentheses" plugins, except using
> > if/else/endif instead of parentheses. I wonder if you could adapt one of
> > those for your use.
> >
> Try Rainbow.vim from my website:
> http://www.drchip.org/astronaut/vim/index.html#RAINBOW .  It currently
> handles c, c++, matlab, Latex, javascript, and vim.
> 
> Regards,
> Chip Campbell

Thanks,
I'll definitely try this for my LaTeX work!

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to