On 11/02/11 9:28 PM, Marco wrote:
Hi,

consider the following situation. I have the following xml file. I folded the
Lorem branch as needed. Now I'm working in the Dolor branch. I unfolded until
Lari. Now the cursor is located in Dolor. I fold the complete Dolor branch
with za.
Now my question. I want to unfold Dolor again. If I press za or zo it unfolds
completely because it was unfolded before to the highest level. I want all
folds i Dolor to be folded again, without affecting my folds in Lorem (that's
why zC does not work here).
How to do this? I hope my explanation was not too confusing and it's clear
what I want to do.

Maybe something like this would work, making zc close 'contained folds'
as well as the one you're in:

:noremap zc zc:foldclose!<CR>zvzc

Ben.



<Lorem>
   <Ipsum>
     <Whateva>
     </Whateva>
   </Ipsum>
</Lorem>

<Dolor>
   <Sit>
     <Amet>
       <Doles>
        <Lari>
        </Lari>
       </Doles>
     </Amet>
     <Consec>
     </Consec>
   </Sit>
</Dolor>

My settings: ft=xml, foldmethod=syntax


Regards
Marco



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

Reply via email to