Tuesday, April 2, 2013

Re: clicking to open folds in Gui?

Hi Linda!

On Di, 02 Apr 2013, Linda W wrote:

> Is there an option or .vim addon that would allow me to click
> on the plus of a folded section and have it expand it?
>
> Closing might not be as intuitive -- if using fold method
> marker (#{{{1), maybe clicking on that marker would close it?
>
> It's just that I saw the + there on a fold and it looked like
> those graphs that you can click on to expand that section...and wondered
> if there was anything in vim that could do that...

You can, if you set the foldcolumn option to some value larger than
zero. A click there will close an open fold and open a closed fold. See
also the documentation at :h fold-foldcolumn

regards,
Christian
--
Wie sich die Gegensätze gleichen!
-- Alfred Polgar

--
--
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/groups/opt_out.

No comments:

Post a Comment