vim +'hardcopy > output.ps' +q style.css
July 21, 2012 — bashoneliners
If you have syntax highlighting properly setup in vim, this command will pretty-print the specified file with syntax highlighting to output.ps.
vim
output.ps
If you prefer PDF, you can convert using ps2pdf output.ps.
ps2pdf output.ps