> > Eg do this and be done: system(s:async.vim.' --help') !~ '--servername'
> Why not "stridx(system(s:async.vim.' --version'), '+clientserver')!=-1"?
--help was the first thing I tried which worked. using --version is
better of course - but who cares?

My code only does the check if vim is used - and falls back to gvim
assuming that most people installing it also have client-server.

For my case its reasonable.

I just feared about me or my system being insane when I saw that
system('gvim --help') yielded an empty string.

Maybe --(help|version) should onnly write to stdout and additionaly
--(help,version)-gui could be added only if somebody is found having a
use case for it? People knowing about --help usually also know how to
redirect.
 
Current behaviour doesn't follow the principle of least surprise which I
like much. That's why it might be worth changing - but its neither
urgent nor very important to me.

Marc Weber

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui