Maxim Kim wrote:
> Is the next command Ex one?
> map <C-d> ihello
>     \world<ESC>
> If it is, shouldn't 2yy:@" command run it flawlessly?

It's a while since I've done this, but I think I have noticed what you
are reporting: line continuation only works in a saved script (and I
agree that it can be handy to test a few lines with saving and sourcing,
particularly when the lines are in the middle of other non-script
stuff).

I guess that :@" is executing each line as a command, whereas in a
script there is a prior step to join continued lines. I quite like
Bram's unorthodox choice of putting the backslash continuation on the
start of the next line, but that means the command parser can't tell if
a command is complete (without attempting to read another line). This
command won't work:

:echo 'Hello<PressEnterHere>\World'

So I think you are stuck with line continuation not working in copied
commands.

John


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

Reply via email to