Skip to content
Browse files

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...
1 parent a396360 commit 3af179bc83a810a3c7cb762d1834dd190e9f604c @b4winckler committed Jul 5, 2008
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/MacVim/gvimrc
View
7 src/MacVim/gvimrc
@@ -1,7 +1,7 @@
" System gvimrc file for MacVim
"
" Maintainer: Bjorn Winckler <bjorn.winckler@gmail.com>
-" Last Change: Sun May 19 2008
+" Last Change: Sat Jul 05 2008
"
" This is a work in progress. If you feel so inclined, please help me improve
" this file.
@@ -28,6 +28,11 @@ endif
+" Send print jobs to Preview.app. This does not delete the temporary ps file
+" that is generated by :hardcopy.
+set printexpr=system('open\ -a\ Preview\ '.v:fname_in)\ +\ v:shell_error
+
+
"
" Extra menus
"

0 comments on commit 3af179b

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