Re: Distinguishing between GUIs
- On Sat, Feb 21, 2004 at 07:15:52PM -0500, Gregory Seidman wrote:
> I use both the Carbon GUI and the X11 GUI and, of course, they both lookWell, that is pretty clever. I like it! I think you could leave
> at the same .gvimrc in my home directory. I want my .gvimrc to be able
> to tell which GUI is being run so that I can set the font differently.
> I've found a way, but it's a nasty kludge and I'd like a cleaner way.
> What I'm currently doing is this:
> if &helpfile =~ ".*/Vim.app/.*"
> "Mac font stuff
> "X11 font stuff
> Yuck! Anyone have a better solution?
off the ".*" on either end.
I think the official way has got to be
" Carbon stuff
" X11 stuff
You can also test has("mac") or "macunix" or "gui_gtk". (I do not have
an X11 version on my mac. It does use the GTK GUI, does it not?)
HTH --Benji Fisher