On Sun, Apr 28, 2013 at 3:07 PM, Bram Moolenaar <[email protected]> wrote:
> In a terminal the CR characters are required.  A NL (aka line feed) only
> moves the cursor to the next line, it doesn't go back to the first
> column.
>
> In the tty handling the CR is often automatically inserted, depending on
> the mode.  Vim assumes raw mode, thus has to write the CR characters.

Ok, thanks. I didn't understand the explanation, to be honest, as I know
nothing about terminals/ttys.

To my naive understanding the behaviour is still different from that of
other utilities. For example when I use an invalid command with sed, its
stderr output is still well-formed in unix terms, with just an LF at the
end of every line.

    cat textfile | sed -e 'crash' 2>tempfile

It isn't clear to me why Vim in batch mode doesn't produce similarly
well-formed lines. I'll try to read up on this.

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui