Sometimes I want the last line of a text file to be a simple string of text with no newline character appended: ...eg. to concatenate another file to it.
Several editors automatically modify my text by adding a newline character, even though I have not pressed Enter.
Remains unmodified: Emacs, SciTE, Kate, Bluefish, Notepad(wine)
Newline is added: Gedit, Gvim, Vim, Nano
I would like to know if there is some way to tweak Gedit, Gvim, and Vim to only save what I have typed.... and even Nano might come in handy
I currently use Gedit, and I'm dabbling in Gvim/Vim.. so it would be useful to know how to "toggle" these on/off...
PS. Upon re-opening the same file in Gedit, Gvim, and Vim, the cursor's end-of-file placement is at the end of the text, whereas it should really show up on the next (empty) line. This is misleading (but that's because of what I'm used to).
I used a hexeditor to check the above observatons.