Fandom

Vim Tips Wiki

Send to default printer with no prompts under Windows

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Tip 1204 Printable Monobook Previous Next

created April 18, 2006 · complexity basic · author Mario · version 6.0


Sometimes after viewing something, you want to see a hardcopy of it. Vim provides a command for this:

:hardcopy

On Windows a typical printers dialog box is displayed. Once you OK that box, Vim sends the document off to the printer. I thought that was great! But how could I do it faster?

Shortly afterwards, I learned the comnmad:

:ha

and that would do the exact same thing. Was there an even faster way to do that? The answer is yes. You can type:

:ha!

and that will send it right off to the default printer wtihout a dialog box stopping you!

When I first learned of ":ha!" I smiled all day!

For systems other than Windows, these commands will work slightly differently. See the Docs for details.

CommentsEdit

Also on Fandom

Random Wiki