On 2010-01-14, Bee wrote:
> On Jan 14, 2:24 am, Tony Mechelynck <[email protected]>
> wrote:
> > On 14/01/10 10:54, epanda wrote:
> > > There is the conditionnal has("unix") feature but how distinguish unix
> > > from mac ?
> >
> > if has('macunix')
> >   echo "Mac OS X"
> > elseif has('mac')
> >   echo "Mac OS 9 or earlier"
> 
> Unfortunately "macunix" and "mac" do NOT work with the built-in vi:
> + vi version 6.2 MacOS 10.4.11 Tiger
> + vi version 7.2.22 MacOS 10.5.8 Leopard
> "unix" does work for with both.

In that case, for any system that claims to be "unix" you could test
the output of system('uname').

Regards,
Gary


-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to