Gary Johnson schrieb:
> 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
E.g. create a mapping for \<
:nn \< IFoo<Esc>
and watch the trouble after :normal \<Esc> on the following line:
Bar
->
FooBac>
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---