On Monday, January 18, 2016 at 11:22:40 PM UTC-6, Daniel Doherty wrote: > Geany has been my editor of choice for the past six years, but I figure now > it's time to bite the bullet and advance to Vim. The thing is, all of my > files are now formatted to function in Geany, and I'd rather not have to > reformat them all. > > Geany allows the first indent to be folded, whereas it seems that Vim by > default only folds the second indent and deeper. Is there a way to set it to > fold from the first indent? > > Also, when Vim folds, it displays an additional line in the middle > describing what is inside the fold. Would it be possible to remove these > middle lines and just indicate that there is a fold by the line above the > fold, as in Geany? > >
Short answer: yes, this is possible. You can use the 'foldexpr' and 'foldtext' options to get almost any folding behavior you want. Longer answer: maybe something like this? http://vim.wikia.com/wiki/Folding_for_plain_text_files_based_on_indentation If that's not what you want, you should show some sample text and how you want it folded, for clarity. -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
