Am Mittwoch, 25. Oktober 2006 18:12 schrieb Tim Chase:
> > 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
> > to the list of OS I use I run into a little problem: there is
> > only "has('unix')" - but that's not good enough as Linux
> > allows for anti alias fonts and Sun Solaris does not.
>
> Perhaps something like
>
> if has('unix')
> let os = system('uname')
> if os ~= 'Linux'
> " do linuxy stuff here
> elseif os ~= 'Solaris'
> " do solarisy stuff here
> endif
> endif
>
> would do the trick?sure it would - but it also means calling an external program at startup. Well, if all else fails... Martin -- Martin Krischik mailto://[EMAIL PROTECTED]
pgpFwzuQmRqMS.pgp
Description: PGP signature
