(This is a slightly modified version of a mail I sent directly
to Bram -- in hindsight, I realized that I should probably have
posted this to the mailing list instead, so here goes.)
The following has been verified on Vim 6.2.154, running on
Slackware 9.1 w/Linux 2.4.23, glibc 2.3.2.
I'm not 100 percent sure that the :append/:insert behavior is
a bug, but I'll describe it nonetheless: When :append'ing or
:insert'ing a line in an empty buffer, a blank line is always
added before (when using :append) or after (when using :insert).
$ vim -u NONE
results in the following buffer:
Unless an empty buffer is supposed to be equivalent to a buffer
containing only a \n, this is a bug, right?
The :change behavior, on the other hand, seems more likely to be a
When either the buffer is empty, or contains only one line, the
change command always inserts a blank line after the text that was
supposed to be inserted. E.g.,
$ cat testfile
$ vim -u NONE testfile
Results in the following buffer:
I did not expect the blank line after "bar". If two or more lines
had been present in "testfile", the current line would be replaced
with "bar" and no blank line would be inserted. Bug?