You are not logged in.

#1 2014-04-23 14:17:36

h4ld3n
Member
Registered: 2013-09-16
Posts: 14

Vim, using Adobe's Source Code Pro problem[Solved]

I'm trying to use the Source Code Pro in my vim, so I wrote in my .vimrc file:
set guifont=Source/ Code/ Pro/ 12
But the output when I saved was "Unknown option: Code/". I installed the font with the script from here:
http://askubuntu.com/questions/193072/h … e-pro-font
And I can use it with xfce4-terminal, so I should be installed just fine (I can use it as the terminal font and then the vim will use it too, but I want to make my .vimrc to do that).

Any ideas?
Thenx in advance.

Last edited by h4ld3n (2014-04-23 14:53:51)

Offline

#2 2014-04-23 14:26:38

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Vim, using Adobe's Source Code Pro problem[Solved]

h4ld3n wrote:

set guifont=Source/ Code/ Pro/ 12

I don't know a thing about what you're doing, but if you're escaping space characters then your backslashes are pointing the wrong way:

set guifont=Source\ Code\ Pro\ 12

Last edited by drcouzelis (2014-04-23 14:27:08)

Offline

#3 2014-04-23 14:50:23

h4ld3n
Member
Registered: 2013-09-16
Posts: 14

Re: Vim, using Adobe's Source Code Pro problem[Solved]

drcouzelis wrote:
h4ld3n wrote:

set guifont=Source/ Code/ Pro/ 12

I don't know a thing about what you're doing, but if you're escaping space characters then your backslashes are pointing the wrong way:

set guifont=Source\ Code\ Pro\ 12

This problem is gone, thenks.
But another problem - after I fixed it, the code doesn't change the font inside vim. Any help?

Edit: I saw that in the vim the font is just the terminal font and only in the gvim the font is set that way. So problem solved, thenks for helping me with the spaces smile

Last edited by h4ld3n (2014-04-23 14:53:31)

Offline

#4 2014-04-23 15:00:34

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Vim, using Adobe's Source Code Pro problem[Solved]

You're welcome. I love Vim. smile

Please click "Edit" on your first post and add "[SOLVED]" to the title.

Offline

#5 2014-04-23 19:02:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Vim, using Adobe's Source Code Pro problem[Solved]

Not a Programing issue, moving to NC..


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB