Use this page to discuss script 4913 ttfzoom: font zooming with Ctrl-MouseWheel 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.

Error under XubuntuEdit

Great plugin,

It works perfectly when using vim from the terminal. However when trying to use it with gvim I get the following error message:

 Error detected while processing function TTFZoom:
 line 15:
 Traceback (most recent call last):
   File "<string>", line 2, in <module>
 NameError: name 'vim' is not defined

Any idea on how I can get it to work with gvim? I'm using VIM 7.4.52 with Xubuntu 14.04. (sorry if this is not the appropriate place for this type of question). --November 7, 2014

This is the correct place to ask, but not many script authors know they should watch this page, so you might not get a useful reply. Using the script link above takes you to where you can click on the author's name. That shows an email address (we don't post addresses here). Please email the author and ask them to look at this page. Don't describe your problem in the email (unless requested) because it would be best if responses occur here for others to see. Script authors should click the "guideline" link in the box at the top and see the advice for how to receive alerts when this page is updated. JohnBeckett (talk) 22:56, November 9, 2014 (UTC)

Solution? I fixed the problem by doing the following:

  • I added "import vim" (after "import re")
  • gfn was undefined so I was falling into the "if not mato" branch. So I defined "set gfn=monospace\ 10" before "function".

--April 28, 2015


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.