On Fri, Nov 20, 2015 at 9:14 PM, Laurent Lyaudet
<[email protected]> wrote:
>
> Personally, I just see a file as a string and it's weird if the empty string 
> is displayed the same as the string "\n". Vim shows 1 line when there is 
> none, 1 line when there is 1, etc. Other editors show 1 line when there is 
> none, 2 lines when there is 1 because you visualize the string plus the 
> possible places for insertion.

Actually, Vim makes a difference: if you have 'ruler' on, or if your
'statusline' shows the current line and column (usually near its right
end), you'll see them displayed as 0,0-1 when in an empty file, but as
1,0-1 when on the only (empty) line in a file consisting only of a
linefeed (or, if 'fileformat' is set to "dos", of a crarriage return -
line feed pair). (And yes, when using papertape on a Teletype 33
almost fifty years ago I wanted the carriage to return to the left
margin and the line to be fed even after the last line in the text. I
even learned to follow every CR-LF pair with three rubouts in order to
give the carriage enough time to return to the margin.)


Best regards,
Tony.

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui