Use this page to discuss script 2931 fontzoom: fontsize controller in gvim

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


Great plugin! I like the mouse wheel zoom control.

To make fontzoom plugin work, I first had to set the font from the menu, each time I started a new seaaon with gvim. After that &guifont was no longer empty, and fontzoom worked. Adding this to the plugin, makes it work without a trip to the font menu:

if &guifont == ''
  let &guifont = "Monospace 10"

This may not have the same effect for others, I'm on a Ubuntu Linux distribution. It would be nicer to query the default, but I not aware of how to do that. --January 27, 2013

It's probably better to set the font wanted in your vimrc, in which case 'guifont' would be set. The way to set an option like this to its default value is with :set guifont&vim, however that is not useful in this case because the default is an empty string (Vim cannot reasonably know what font is available). JohnBeckett (talk) 03:49, January 29, 2013 (UTC)
You can query the font attribute using a synIDattr() call, e.g. :echo synIDattr(hlID('Normal'), 'font') Chrisbra (talk) 15:50, January 29, 2013 (UTC)
There is also the getfontname() function. I don't know if it offers anything over synIDattr or not. --Fritzophrenic (talk) 22:40, January 29, 2013 (UTC)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.