Wednesday, April 3, 2013

Re: clicking to open folds in Gui?

Here's another fold-related mapping I use:

nno <silent> <c-space> :SWP<cr>[[:let b:topfunc= line(".")<cr>][:let
b:botfunc= line(".")<cr>:exe b:topfunc "," b:botfunc "foldo"<bar>unlet
b:topfunc b:botfunc<bar>RWP<cr>

You'll need my cecutil plugin, though: see
http://www.drchip.org/astronaut/vim/index.html#CECUTIL . What it does,
using a comment I have in my .vimrc:

" <c-space>: open all folds between [[ to ][ (ie. unfold the current
function)

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

No comments: