On Fri, Nov 20, 2015 at 4:44 PM, Ben Fritz <[email protected]> wrote:
> Somebody mentioned it in passing; and I agree this isn't a bug, so the issue
> should remain closed, however:
>
> The user has a problem. The problem can be fixed with different user settings.
>
> You need to set noeol and nofixeol (in very recent versions of Vim) if you
> want to remove the last linefeed character.
>
> There are complicated workarounds using the 'binary' option for earlier Vim
> versions without the fixeol option.
>
The workarounds are not complicated, however it must be remembered
that closing a file to edit sets 'eol' on on it, unless it has either
'binary' or (in recent Vim versions) 'nofixeol'. So, even in old Vim
builds:
- To do it once, use
:setlocal bin noeol
just before saving.
- Or you may set these same options by means of a modeline (q.v.) to
make sure that the last line remains incomplete and that if ever you
concatenate an other file to that one, the first line of the second
file will be tacked onto the last line of the first one. :-P
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.