vim / gvim unable to get hardcopy

James B. Byrne byrnejb at
Fri Nov 10 17:42:10 UTC 2017

On Thu, November 9, 2017 12:26, Dutch Ingraham wrote:
> On Thu, Nov 09, 2017 at 11:54:53AM -0500, James B. Byrne via
> freebsd-questions wrote:
>> I discover this morning that I cannot print hardcopy from vim.  I do
> You likely need to set a default printer, if you haven't done so.  See
> <man 8 lpadmin> and specifically the -d switch.

Oh, it was worse than that.  I discovered that lpd is not enabled as a
default on FreeBSD and that I had to add the line -- lpd-enable="YES"
-- to /etc/rc.conf to get things to start printing.  I infer from
this, and from the mass of printing that came off the system printer
as soon as cups-lpd was started, that printing from vim, or nay other
cli command, has not worked on this system since it was installed in

Funnily enough, I found that the settings in /etc/printcap were all
there for the printers we have on the network. As were the spool
directories in /var/spool/lpd/.  I have no idea how that happened and
yet the lpd service was not enabled.


***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB at
Harte & Lyne Limited
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3

More information about the freebsd-questions mailing list