Hi Martin,
On 10/25/06, Martin Krischik <[EMAIL PROTECTED]> wrote:
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...
I use the OSTYPE environment variable to differentiate between
Solaris and Linux systems.
if $OSTYPE =~ 'linux'
" Do something
elseif $OSTYPE =~ 'solaris'
" Do something
else
" Do something
endif
- Yegappan