On 2009-01-04, Tony Mechelynck wrote: > > On 04/01/09 02:45, anhnmncb wrote: >> I have a foldtext() that generates a long line, I don't know how to let it >> wrap to next line to show the foldtext cross lines. Or is it unpossible at >> present? >> > > First, a warning: Folding is one of the areas of Vim that I know worst, > so if anyone else replies, read it.
Why? I think folding in vim is so excellent and make me can't live without it(I usually need to type a long text file that > 2000 lines)! See emacs' similar function outline-mode, how suck! > > Now what is the foldtext? IIUC it is the text which Vim prints on a > closed fold, and a closed fold is shown as exactly one line in the > display (in gvim, and with no colorscheme, it has grey background). > > So, IIUC (but maybe I don't) you cannot display more than one line of > 'foldtext'. > > See ":help fold-foldtext" where it is said (among others): "The > resulting line is truncated to fit in the window, it never wraps." Hmm, don't know if it's hard to implement. > > > Best regards, > Tony. -- Regards, anhnmncb --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
