Monday, June 17, 2013

Re: Macvim seems not to be reading my .vimrc

On Jun 17, 2013, at 3:13 PM, Ben Fritz <fritzophrenic@gmail.com> wrote:

> On Monday, June 17, 2013 1:06:38 PM UTC-5, Eric Weir wrote:
>
>> Yes, I edited the .vimrc. Used the default mac text editor, textedit. :echo getfontname() returns nothing.
>
> I've never seen getfontname() return nothing.
>
> Without arguments, getfontname() is supposed to return whatever font is actually being used by gvim, whether it was found in the guifont option, or is just the default font.
>
> However it doesn't work if the GUI is not running. Did you run the ":echo getfontname()" command manually from gvim, after it is all the way started up, and not in your .vimrc, etc.?

Thanks again, Ben.

I'm using macvim. I ran getfontname() from the command line.

> Note, the best way to set a font, is to use the dialog, with ":set guifont=*"
>
> Then you can make note of the exact font string used, by doing ":set guifont?" to echo it, and use that string in your .vimrc or .gvimrc.

I have this in my .vimrc: set guifont=Monaco:h14

When I do :set guifont? I get set guifont=Monaco:h10

Regards,
------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eeweir@bellsouth.net

"With an ounce of willingness, everything can change."

- Kim




--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment