Sunday, August 15, 2010

Re: Writing files without EOL

Peter Hodge wrote:
> Dear Vimmers,
>
> Is there a way to make vim write a file using dos line endings (<CR> <NL>) but *without* the EOL at the end?

Isn't this just another way of saying "mac format"?

:set ff=mac
:help ff

Brett Stahlman

>
> Currently it seems vim will only let me:
>
> A) Add newlines for no good reason
>
> B) Convert files to Unix line endings
>
> It looks like I will need to write a shell script to strip the EOL after writing, set up an autocmd to run it, and also set up an autocmd to skip the FileChanged warning ... isn't there a better way?
>
> 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

No comments: