If I execute the following commands from within a
vim session that's visiting a file of code, the resulting hardcopy is syntax highlighted in color:
:syntax on :hardcopy >/path/to/hardcopy.ps
But if I try the same sequence of commands from the command line (Unix shell), the resulting hardcopy is not color-highlighted (I get just black text, sometimes bold, or underlined, etc., on a white background):
% vim -c ':syntax on' -c ':hardcopy >/path/to/hardcopy.ps' -c quit /path/to/original
Any ideas on how to fix this problem?