Dynamically change font size in gvim?

9

1

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?

ngm

Posted 2009-12-07T01:00:17.143

Reputation: 1 593

Answers

9

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).

Rook

Posted 2009-12-07T01:00:17.143

Reputation: 21 622

It looks like nowadays this doesn't work anymore. – daminetreg – 2018-06-27T16:24:25.400

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 '=' – None – 2010-11-04T05:40:13.717