Send text to the printer
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Send text to the printer.
Output file
- example.ps
absent
Command entered · ready to apply
Output file
- example.ps
absent
Command line
- Typed text
:hardcopy >example.ps- Insertion offset
21
:hardcopy >example.ps renders the buffer into a PostScript file; it does not invoke a printer for this form.
PostScript output
- example.ps
PostScript document containing the buffer line hello- Print destination
file; no printer job
Before & after
Before
Output file
- example.ps
absent
After
PostScript output
- example.ps
PostScript document containing the buffer line hello- Print destination
file; no printer job
Documentation-backed illustration. non-Windows Vim with +postscript and an available font/encoding setup; example.ps does not exist. :hardcopy >example.ps renders the buffer into a PostScript file; it does not invoke a printer for this form. Primary help: :hardcopy.
helloCursor on line 1, column 1Details & Vim help
Send text to the printer. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :ha[rdcopy] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.