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 was wondering how to change the font used in gvim to Inconsolata without having the font installed on the system (to C:/Windows/Fonts) I have the font on a usb drive and I want to make vim portable, so I have the 2 files on the usb drive.

How can I use "set guifont=Inconsolata" to make it work without having to install it? I tried "set guifont=D:/Inconsolata.otf" and "set guifont=D:/Inconsolata" but it still doesn't work.


share|improve this question

migrated from Jan 12 '13 at 23:18

This question came from our site for professional and enthusiast programmers.

Sorry, I didn't mean to put this in the wrong place, but I see a lot of VIM questions going around here that aren't closed at all, so I thought this was a suitable place to ask my question. – zero57 Jan 12 '13 at 22:19
up vote 3 down vote accepted

It can't work. Not like that at least.

The font has to be "installed" from the system's (and thus Vim's) point of view.

On Windows XP, you can "install" a font without admin privileges following this method:

  1. Navigate to C:\WINDOWS\Fonts.

  2. FileInstall…

  3. Choose the font on your USB stick.

  4. Uncheck Copy….

  5. Hit OK.

I have no idea if/how you can do it on Vista/7/8.

share|improve this answer
Ah, I see, that's unfortunate. Thanks anyways though! – zero57 Jan 12 '13 at 22:18
How is that unfortunate? – romainl Jan 12 '13 at 22:26
The fact that he can't use it from the USB, he has to install it first. – greduan Jan 13 '13 at 0:37
It takes less than 1 minute. – romainl Jan 13 '13 at 15:56

You must log in to answer this question.

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