Tuesday, April 2, 2013

Re: clicking to open folds in Gui?

Ben Fritz wrote:
>> I think you're looking for the 'foldcolumn' option. Clicking the + or - in the column displayed when this option is set to non-zero will expand or collapse folds.
>>

Christian Brabandt wrote:
> 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
>
----
Yes and no -- there was an existing + displayed where the fold was
that didn't take
an extra column that I was wanting to click on.

However, the fold-column option offers other benefits in navigation, so
it might suit me better! I'll have to play w/it and see how it grows on
me...

Thanks!



Charles Campbell wrote:
> nno <silent> <space> :exe 'silent! normal!
> '.((foldclosed('.')>0)? 'zMzx' : 'zc')<cr>
> I suppose that instead of <space> one could put <leftmouse> or whatever.

(and maybe I'll throw in that space bar mapping too, just for kicks on a
mouseclick...
;->


--
--
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: