...snip...

Is this a bug, or is there an option setting that could be preventing
the example from working as expected?

Note that what I really want is to use :append and :insert *without*
global: e.g.,

insert
one line
another line
.

...And this actually does what I want. I hesitate to use it, however,
because of the following 2 statements in the Vim help, which seem to
imply that you must use :global or :vglobal for non-interactive usage.

        >>>
        These two commands will keep on asking for lines, until you type
        a line containing only a ".".
        .
        .
        When these commands are used with :global or :vglobal then the
        lines are obtained from the text following the command.
        <<<

A possible interpretation has occurred to me... Notwithstanding the "...keep on asking for lines..." wording in the first statement, Vim doesn't really care whether the lines are being typed at the command line or being read from a file. The second statement merely indicates that the lines can't be supplied interactively when :global is used. In light of the first statement, I interpreted the second statement to mean... "You must use :global if you want the text to be supplied non-interactively."

...The intent, however, may simply have been...
"You must supply text non-interactively if you're using :global."

If so, I would submit that the wording of the first statement contributed to my misunderstanding: in particular, it seems to suggest the following division:
without :global ==> interactive
with :global    ==> non-interactive

Brett Stahlman


Although :append and :insert appear to work non-interactively as well,
I don't want to use them this way if the behavior is undefined.

Thanks,
Brett Stahlman


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

Reply via email to