Monday, June 17, 2013

Re: Macvim seems not to be reading my .vimrc

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.?

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.

Font strings differ greatly depending on the system Vim is running on.

--
--
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: