Friday, October 21, 2011

Re: One line without EOL

On Fri, 21 Oct 2011, meino.cramer@gmx.de wrote:

> Hi,
>
> is it possible to create a line of text with vim which do not contain
> any \n, \ra ?
>
> Or in other words: The line should contain nothing more than the
> visible chars.
>
> I need this to generate test data for testing a VFD...
>
> How can I accomplish this?

You can use the 'binary' and (no)'eol' options.

'eol' tells Vim whether to include the final newline in the file. But,
'noeol' doesn't work unless 'binary' is also set.

vim -b +'se bin' filename.oneline

--
Best,
Ben

--
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: