On Sep 10, 6:52 pm, "Greg Klein" <[email protected]> wrote:
> With :hardcopy I can select lines from a file and print just those
> lines. The printoptions (popt) option includes a parameter wrap:y/n
> described as:
>
> wrap:y (default) Wrap long lines.
> wrap:n Truncate long lines.
>
> So what is the definition of a "long line" in this context?
I'm pretty sure it's a line that, with current font and print margin
settings, and with any extras like line numbers, will not fit in the
width of a single page.
> Can I change
> the definition for :hardcopy purposes? I wish to prevent lines from
> wrapping (or truncating) in my printed output.
I'm pretty sure you can't, but you can decrease the font size, or
manually wrap your lines where you want them, or decrease your page
margins, or turn of line numbers in the printed output, or any other
of things you'd do in any other program to get a line not to wrap or
be truncated when printed.
You MIGHT be able to get better control (or different controls at
least) using TOhtml to convert your document to HTML first, and then
printing from your web browser of choice. See :help :TOhtml, and be
sure to put :let html_use_css = 1 into your .vimrc.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---