Wednesday, September 22, 2010

Re: nmap'ped commands do not work - but if typed manually

Jürgen Krämer wrote:

> I'm not sure if it's related, but there's a note for the 'foldopen'
> option that this option is not taken into account if the commands
> mentioned there are used insided a mapping. One category of commands
> listed at :help 'foldopen' is "block" which contains "(", "{", "[[",
> "[{", etc. If "[z" falls into this category, you might try it with an
> additional "zv" inside you mapping:
>
> nmap z<C-O> ]zzvV[zzO

Yes! That's it!

I just moved zv to the beginning: zv]zV[zzO

Thank's a lot!
Felix

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

No comments: