Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (0 / 6) |
Uptime: | 56:17:34 |
Calls: | 632 |
Files: | 1,187 |
D/L today: |
27 files (19,977K bytes) |
Messages: | 179,569 |
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)
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.
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.