RSS

[vim] Print file from within vim

28 Aug

To print the lines starting from line m to line n:
:m,n ha >printout.ps or :m,n hardcopy >printout.ps

Without the >printout.ps part, the default printer will be used.

By the way, to print the whole file :hardcopy works just fine.

About these ads
 
Leave a comment

Posted by on August 28, 2009 in vim

 

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 35 other followers

%d bloggers like this: