Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

Thanks.

share|improve this question

migrated from stackoverflow.com 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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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