> On 2009-08-20, Tim Chase wrote:
>
>> "dd" is a normal-mode command. 1d is an Ex command for "delete
>> line #1". The [arg|win|tab|buf]do commands take Ex commands,
>> rather than normal-mode commands. The normal-mode way would be
>> to do something like
>>
>>
>> argdo ... exec "dd"
>
> I think you meant
>
> argdo ... normal dd
Doh, I meant *both*...because :normal eats whatever comes after
it (such as the OP's other commands), one would have to do
something like
argdo ... exec 'normal dd' | ...
You can see, from two seasoned vimmers bumbling towards a correct
solution on this, why I opted for the straightforward Ex command
of "1d" :)
-tim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment