Hi Ben, :-) thanks u very much.
It seems that i have to distinguish whether the closed fold exists or not and deal with 'if ....else.....', if i wanna execute map <A-l> to <Right> absolutely automatically. Certainly, may also like this. :-) -Regards, -- William <[email protected]> On Mon, 22 Jun 2009 12:11:18 -0700 (PDT) Ben Fritz <[email protected]> wrote: > > > > On Jun 22, 11:20�am, William <[email protected]> wrote: > > map �<A-l> <Right> > > map! <A-l> <Right> > > > > <A-l> can't open a fold, i have to press <Right> directly > > This was really hard to find, but it's in the help. > > From :help 'foldopen' you can see this: > > When the command is part of a mapping this option is not used. Add > the |zv| command to the mapping to get the same effect. > > Try this mapping instead: > > map <A-l> <Right>zv > map! <A-l> <Right> > > (folds should always be open far enough to view the cursor in insert > mode without you doing anything special) > --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
