Monday, February 21, 2011

Re: Including into the current buffer from an external source

On Mon, 21 Feb 2011, Christian Brabandt wrote:

> Hi ZyX!
>
> (Please don't top post!)
>
> On Mo, 21 Feb 2011, ZyX wrote:
>
>> Your emulation is incorrect: try to get the same output as ``read!
>> echo $'\0'''. In case of reading file my suggestion works just as
>> well
>
> You are not only Unix specific, but Shell specific. That is not
> portable and won't even work if you haven't set 'shell' correctly.

I believe the point was merely that it's a corner case that is handled
correctly in ZyX's solution (or suggestion? [use ':read' for both] --
not sure I saw a full alternate version).

I.e. Your version may work on *nix + Windows, but its behavior differs
from that of the :read command.

--
Best,
Ben

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: