Charles Campbell wrote:
> Steven Woody wrote:,
>> Can I fold/unfold c/c++ code blocks?  Thanks.
> :he zo
> :he zO
> :he zc
> :he zC
> :he 'fdm'
> 
> I use the space, myself, with the following map: (to do both opening and 
> closing)
> 
> nno    <silent> <space>    :exe 'silent! normal! '.((foldclosed('.')>0)? 
> 'zMzx' : 'zc')<cr>

za toggles a fold
zA toggles folds recursively  These two are my favourites. (They basically 
combine zo/zc)
The other one I often use is zR to unfold the whole file. Its counterpart is 
zM, but that I never
use.

Frans

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to