> Hi,
>
> Sometime I set tw=0 and use linebreak + breakat to have the lines "softwrap"
> at certain characters. Unfortunately, :hardcopy seems to ignore the value of
> linebreak + breakat.
>
> Is there a way to make :hardcopy break long lines at the characters set in
> the breakat option?
>
None that I know of, however you can use the :TOhtml command to
convert your file into an html document with all syntax highlighting
still applied, and print that from your browser of choice. Assuming
your browser of choice is a reasonably modern one, it should print
very nicely. Consult the :help. Some features have been added very
recently, including the use of CSS to set text wrapping inside the
default <pre> tag, so you'll be best off with an up-to-date runtime.
Sadly you still don't get 'breakat' support this way, but it's a step
in the right direction at least. I don't think there's a nice way to
tell a browser where to put line wraps (though certain characters tell
it where NOT to wrap). If there is a way, I'm all ears :-)
--
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:
Post a Comment