Gary Johnson wrote: > Just exchanging the '<1' and the 1 at the end seems to fix it: > > setlocal > foldexpr=matchstr(getline(v:lnum),'^[^\|]\\+')=~matchstr(getli > ne(v:lnum+1),'^[^\|]\\+')?1:'<1'
In anticipation that someone might want this info as a Vim Tip, I found the two related tips we seem to have, and roughly merged the second to the first, and added DavidF's suggestion with GaryJ's fix: http://vim.wikia.com/wiki/Folding_for_Quickfix The tip needs some significant work. I haven't got time at the moment to understand what it's doing, but I suspect some major pruning could be done. John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
