On Thu, October 8, 2009 3:31 pm, yosi izaq wrote: > > On Thu, Oct 8, 2009 at 2:27 PM, Paul wrote: >> >>> I would like to apply the most simple directive to fold all the file >>> so that each item (->) would be closed. >> >> set foldmethod=indent ? >> > > Doesn't get the job done. The bullets are indented but I'm too lazy to > indent the text so the file looks like:
Well, I have never used fold-expressions. But that may give you a start: set foldexpr=(indent(v:lnum)==0)?'=':(indent(v:lnum-1)>indent(v:lnum)?'<1':'>1') regards, Christian -- :wq! --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
