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?

link|improve this question

feedback

2 Answers

up vote 6 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).

link|improve this answer
feedback

That script specified in the zoom.vim does not work. I get following error on trying it in VI.

Error detected while processing function 9_ZoomIn: line 2: E18: Unexpected characters before '='

link|improve this answer
This should be a comment in the selected answer. – Vinicius Massuchetto Feb 26 at 13:04
feedback

Your Answer

 
or
required, but never shown

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