On Thursday 01 October 2009, Ben Fritz wrote: > On Sep 30, 2:49 pm, Noel Henson <[email protected]> wrote: > > Apparently the last approach was not a good one. Are there any > > suggestions for methods that would be acceptable for highlighting > > folded lines based on level and/or content (syntax)? > > What is "the last approach", and what are you trying to accomplish? > "Highlighting folded lines based on level and/or content" doesn't mean > much to me. > We have a set of scripts that adds a outliner/organizer on top of VIM. We use different colors to show different levels of folds, when the folds are open. When the folds are closed, all show the same color. We would like VIM to allow for different colors/highlighting for folded folds. These can be dependent upon the fold level, indent and or contents of the fold.
Unfortunately, there is only one attribute that specifies a closed fold and therefore only one highlight that can be use. I created a patch a short time ago that allows the highlighting to be specified by a user script and thus closed folds can be highlighted uniquely or in groups by whatever criteria a user wants. If no user script (expression) is provided, VIM defaults to its original behavior. That's about it. Noel -- ------------------------------------------------------------------ Noel Henson www.noels-lab.com Chips, firmware and embedded systems www.vimoutliner.org Work fast. Think well. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
