On Monday, May 21, 2012 8:37:09 AM UTC-5, Richard Michael wrote:
> By default, mvim uses blue/grey highlighting on a closed fold.  I would like 
> to configure the 'fold-text' on a closed fold to instead be the syntax 
> highlighted text.
> 
> I thought I could turn off the colour highlighting and write a vim function 
> to return a syntax highlighted line, then call it from 'fold-text'.  But, I'm 
> not sure how to proceed with the syntax highlighting function.
> 
> 
> :set fold-text=SyntaxHighlightFoldText()
> :function SyntaxHighlightFoldText()
> :  let line = some_syntax_format_function(getline(v:foldstart))
> : return line
> 
> 
> Syntax help discusses a few fold-specific settings.  Are there provided vim 
> functions to highlight content?  I wonder if a "region" is helpful?  Any 
> guidance or opinions would be appreciated.
> 
> Thank you,
> Richard

Sorry, folded lines can't be syntax highlighted currently.

-- 
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

Reply via email to