Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Send print jobs to Preview.app

There are two drawbacks to this method:
1. the temporary file generated by :hardcopy is not deleted
2. Preview shows a "save changes?" sheet upon closing
  • Loading branch information...
commit 3af179bc83a810a3c7cb762d1834dd190e9f604c 1 parent a396360
Björn Winckler authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 src/MacVim/gvimrc
7 src/MacVim/gvimrc
... ... @@ -1,7 +1,7 @@
1 1 " System gvimrc file for MacVim
2 2 "
3 3 " Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com>
4   -" Last Change: Sun May 19 2008
  4 +" Last Change: Sat Jul 05 2008
5 5 "
6 6 " This is a work in progress. If you feel so inclined, please help me improve
7 7 " this file.
@@ -28,6 +28,11 @@ endif
28 28
29 29
30 30
  31 +" Send print jobs to Preview.app. This does not delete the temporary ps file
  32 +" that is generated by :hardcopy.
  33 +set printexpr=system('open\ -a\ Preview\ '.v:fname_in)\ +\ v:shell_error
  34 +
  35 +
31 36 "
32 37 " Extra menus
33 38 "

0 comments on commit 3af179b

Please sign in to comment.
Something went wrong with that request. Please try again.