Tuesday, January 19, 2016

Re: configuring folding

Thank you for your help. That link you posted seems to describe exactly what
I want, but the code posted doesn't work the way I'd like it to.

So imagine that my text looks like this:

Volume 1
[tab]Book 1
[tab][tab]Part 1
[tab][tab]Part 2
[tab]Book 2
[tab][tab]Part 3
[tab][tab]Part 4
Volume 2
Volume 3

I would like it to display like this when folded:

Volume 1
Volume 2
Volume 3

With maybe these lines in a different color or something to show that
they're folded.

Instead, by default Vim displays it like this:

Volume 1
[tab]Book 1
+-- 2 lines: Part 1
[tab]Book 2
+-- 2 lines: Part 3
Volume 2
Volume 3

It's never folding the first indents, and it has that additional line to
show what the fold contains.

And with that code from the link you posted, it displays like this:

Volume 1

The Volume 2 and Volume 3 headers get swallowed up by Volume 1. Also, it
displays the tab indents of folded headers as if they were spaces, like
this:

Volume 1
[tab]Book 1 (unfolded)
Part 1 (still folded)

That's a bit irritating for me, because it looks like Part 1 is less
indented than Book 1, like it's a higher level, when it's actually a lower
level.



--
View this message in context: http://vim.1045645.n5.nabble.com/configuring-folding-tp5726648p5726651.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: