Monday, September 14, 2015

Re: Page breaks in vimrc

On Mon, Sep 14, 2015 at 12:41 PM, Bob Hyam <ramius72@gmail.com> wrote:
Can anyone tell me how I put page breaks (for printouts) into my .vimrc file so as they don't affect vim startup.
Thanks, Bob

     Not a perfect solution, but you can add lines like

" ^L

where you want page breaks.  Enter the form-feed character (0x0c) as  CTRL-V CTRL-L (in Insert mode).  Then (with or without saving)

:set popt+=formfeed:y
:hardcopy

:help popt-option
:help :hardcopy

-- 
HTH  Benji Fisher

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment