Vim Tips Wiki
(added gtklp fro gnome users.)
Line 2: Line 2:
 
{{Tip
 
{{Tip
 
|id=313
 
|id=313
|title=printing using kprinter (unix __PLUS__ kde)
+
|title=printing using kprinter
 
|created=August 14, 2002 3:47
 
|created=August 14, 2002 3:47
 
|complexity=basic
 
|complexity=basic
Line 9: Line 9:
 
|rating=71/28
 
|rating=71/28
 
|text=
 
|text=
just add
+
Just add
 
set printexpr=system('kprinter'\ .\ '\ '\ .\ v:fname_in)\ .\ delete(v:fname_in)\ +\ v:shell_error
 
set printexpr=system('kprinter'\ .\ '\ '\ .\ v:fname_in)\ .\ delete(v:fname_in)\ +\ v:shell_error
   
 
to your ~/.vimrc; further on all your printing will be piped through the nice and consistent print-dialog of kde.
 
to your ~/.vimrc; further on all your printing will be piped through the nice and consistent print-dialog of kde.
   
  +
Gnome users can replace kprinter with '''gtklp'''
lg,
 
   
tomte
 
 
}}
 
}}
   

Revision as of 12:48, 30 August 2007

Previous TipNext Tip

Tip: #313 - Printing using kprinter

Created: August 14, 2002 3:47 Complexity: basic Author: tom regner Version: 6.0 Karma: 71/28 Imported from: Tip#313

Just add

set printexpr=system('kprinter'\ .\ '\ '\ .\ v:fname_in)\ .\ delete(v:fname_in)\ +\ v:shell_error 

to your ~/.vimrc; further on all your printing will be piped through the nice and consistent print-dialog of kde.

Gnome users can replace kprinter with gtklp

Comments