--- On Mon, 16/8/10, Tim Chase <[email protected]> wrote:
> From: Tim Chase <[email protected]>
> Subject: Re: Writing files without EOL
> To: [email protected]
> Cc: "Peter Hodge" <[email protected]>
> Received: Monday, 16 August, 2010, 11:15 AM
> > Is there a way to make vim write
> a file using dos line endings
> > (<CR> <NL>) but *without* the EOL at
> the end?
>
> Have you experimented with the 'noeol' option?
>
> :help 'eol'
The 'eol' option only works if I also turn on 'binary', but if I use 'binary' I
can only write the file using fileformat=unix. I need to write the file using
fileformat=dos but without \r\n at the very end of the file, unless it was
already there.
>
> > Currently it seems vim will only let me:
> >
> > A) Add newlines for no good reason
>
> It's actually for very good reasons[1]
I know there are reasons for having newlines at the end of a file, but I need
to avoid changing code unnecessarily.
Peter
--
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