aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/printing-hardcopy.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugin/printing-hardcopy.vim b/plugin/printing-hardcopy.vim
new file mode 100644
index 0000000..ad51b02
--- /dev/null
+++ b/plugin/printing-hardcopy.vim
@@ -0,0 +1,10 @@
1let default_expr=&printexpr
2
3" if filereadable("/usr/bin/a2ps")
4" let &printexpr = "system('a2ps -1gEmail --borders=no --strip=3')"
5" endif
6"
7set printoptions=portrait:y,number:n,syntax:n,left:25mm,right:20mm,top:27mm,bottom:25mm
8
9let &printfont = "monospace 11"
10let &printexpr = "system('lpr -p' . (&printdevice == '' ? '' : ' -P' . &printdevice) . ' ' . v:fname_in) . delete(v:fname_in) + v:shell_error"
..