Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 9 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .