Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
When printing from VIM, is it possible to choose a font other than Courier 10 for the hard copy output? For example, the following commands produce the same postscript file:
It says in the help for printfont that the font NAME (i.e., the typeface) is ignored (which seems stupid, but at least they tell you that) but the SIZE is not. The part about the size not being ignored seems to be a lie. What am I doing wrong?
More importantly, is there a way to change the output typeface to something else? Not that I hate Courier, but I might want my code printouts to be a different typeface.
Sorry for not replying for so long, which I guess only hurts me in the long run.
The utility SkyEye provided (which I already found before posting the first time) only lets you tab between choices of Courier font sizes. In essence, that setting changes the value of "printfont." Also, when I actually print, it tries to re-load the color scheme, and somehow failed to do so if I used one from my own home directory instead of the system wide location. Oh, and changing the dialog from <Courier_h8> to <Courier_h10> doesn't ACTUALLY change the font the printer uses---go figure. Nor does changing the value of "printfont" manually or in ~/.gvimrc. There also isn't a choice for a non-Courier typeface.
The answer seems to be, "no, you're not doing anything wrong," and, "no, you can't change the typeface VIM uses to make hard copies."
If anyone who has gotten VIM 7.x for GNU/Linux to change its output typeface (or font size), please let us know what you did (precisely) so I can attempt to repeat it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.