On 2015-12-03, [email protected] wrote: > Hi, today I discovered a strange issue that lead me to waste 2 > hours of time, since I rely on vim but it seems I discovered a > bug. > > When working with files I usually put on end of line markers > with the command : set list . Today I had a file with the last > line without a LF character but though I had enabled the line > ending markers(with : set list) and put vim in binary mode, it > kept sowing a dollar sign at the end of the last line, as if a > line mark was there for real. Why vim shows an end of line > when there is actually no end of line ?
I think this is a matter of a difference in definitions. The "end of line" for listing just means showing something so you can tell there are no spaces (or if there are) after the last printable character. You'd have to show _some_ marker for this purpose, or you couldn't tell a file with spaces at the end from a file without them, at least not without trail in listchars, which is absent by default. I've always thought that a nice solution would be that files with no LF at the end of the file should show a NonText tilde directly after the last character, list mode or not. Along with, perhaps, also showing it at the top left corner if there are no lines in the file, as VILE does. The logic would be that the first ~ always immediately follows the last character, newline or otherwise. -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" 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.
