for my font plug in I need to know which OS I am running on to
choose an appropriate font.  Now when Sun Solaris where added
[cut]

sure it would - but it also means calling an external program at startup. Well, if all else fails...

Well, additionally, the 'guifont' option can take a comma-separated list of font-names. Thus, you could have it try something like

if has('unix')
        set guifont=AntialiasedFontILike,FallbackFont



Tony has a common bit of useful script that he drops on the list occasionally when this topic comes up (which you can find at

http://article.gmane.org/gmane.editors.vim/40125

) which does some platform-sniffing to set the font accordingly. A combination of these ideas should hopefully get you closer to having the font of your dreams. :)

-tim



Reply via email to