From Newsgroup: comp.editors
On Fri, 3 Oct 2025 09:11:34 +0200, Marco Moock wrote:
On 18.09.2025 23:36 Uhr Janis Papanagnou wrote:
What I was wondering about, though, was that it displays the text file
with the marker "[noeol]" despite the text file's last line is
terminated correctly by a '\n'. - A bug? (Observed with Vim 7.3)
I can confirm this with 9.1.1230-2.
EOL exists, vim can find it and even after saving the file, the message
still occurs.
The problem is that Vim wants to assume that every line ends with a
newline character, but it doesnrCOt want you to be able to navigate to
newline characters -- theyrCOre supposed to be invisible, or something.
Other more reasonably-designed editors are capable of distinguishing
between files where the last line ends with a newline, and ones where it doesnrCOt. Vim cannot.
--- Synchronet 3.21a-Linux NewsLink 1.2