Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking to use Consolas and Helvetica (for example) within the same buffer.

share|improve this question
    
In vim? vim is a command-line program; you can't decide from within the program what font the terminal uses to display text. If you meant a GUI version of vim, e.g. MacVim, that's a different thing, and a different tag. ;) –  Blacklight Shining Nov 2 '12 at 23:05
3  
What would be the point? What kind of information would you want to show that is not already conveyed by color, weight or slant? I could understand the logic if you wanted to use a regular monospace font and a cursive, maybe (even if I think that would be utterly awful and counterproductive), but… two monospace fonts? They would too similar. Some explanations on what you want to achieve would be welcome. –  romainl Nov 3 '12 at 9:48
    
@romainl Correct, I overlooked that the two fonts were monospace. I'll edit the question. –  mt3 Jun 5 '13 at 5:14

1 Answer 1

Well, sort of, in the GUI, if you're willing to use the syntax highlighting engine to do it. See:

:help syntax.txt
:help :highlight
:help highlight-font

But be aware of this caveat in the documentation:

All fonts used, except for Menu and Tooltip, should be of the same character size as the default font! Otherwise redrawing problems will occur.

share|improve this answer
    
What are some of the worse redrawing issues (if you're familiar with them)? –  mt3 Nov 3 '12 at 8:22
    
Also, any link to an implementation would be great. –  mt3 Nov 3 '12 at 8:23
    
It's not something I've done, so I can't help you with either question. It would help if we knew why you wanted to do this. –  Heptite Nov 3 '12 at 9:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.