On 2009-06-04, Matt Wozniski wrote:
> On Wed, Jun 3, 2009 at 6:54 PM, Wu, Yue wrote:
> >
> > On Thu, 04 Jun 2009 06:42:57 +0800, Gary Johnson wrote:
> >
> >> normal \<Esc>
> >
> > But it has limitation, hmm? when I use it in my script, vim warns:
> >
> >        E523: Not allowed here.
> >
> > Maybe it can't be used when vim in sandbox.
> 
> That needs to be
> 
> exe "normal! \<Esc>"
> 
> afaics.  But, it ought to work in the sandbox....

I can't comment on the sandbox issue, but the exe is not needed for
this, ":help :normal" and ":help :echoe" notwithstanding.  I don't
know why.  My plugin uses just

    normal \<Esc>

Regards,
Gary



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

Reply via email to