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

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