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'd like to be able to dynamically change the font size in gvim.

Essentially, the common zoom-in/zoom-out functionality you find in a lot of software.

So if I press Ctrl+=, the font size gets bigger. If I press Ctrl+-, the font size decreases. And, ideally, if I press Ctrl-0 the font size returns to my default size.

Is it possible?

share|improve this question

1 Answer 1

up vote 8 down vote accepted

Sure it is, via zoom.vim

(it is mapped to + and - by default, but I gather you know how to change that to your liking).

share|improve this answer
    
That script specified in the zoom.vim does not work. I get following error on trying it in VI. Error detected while processing function <SNR>9_ZoomIn: line 2: E18: Unexpected characters before '=' –  user54487 Nov 4 '10 at 5:40

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.