Ben Fritz wrote:
On Tuesday, April 2, 2013 12:15:12 PM UTC-5, 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...

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.

Hello!

I use the following mapping:

nno <silent> <space> :exe 'silent! normal! '.((foldclosed('.')>0)? 'zMzx' : 'zc')<cr>

Its not a click mapping, obviously -- but it makes the space bar a toggle for the folding under the cursor. I suppose that instead of <space> one could put <leftmouse> or whatever.

Regards,
C Campbell


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


Reply via email to