четверг, 25 октября 2012 г., 8:41:03 UTC+4 пользователь MarcWeber написал:
> Sorry, if you don't have a terminal you don't use gvim --help usually.
> Anybody who did proof me wrong, please.
> 
> Thus it should be fine to print --help output before starting the gui
> and everything should be fine.
> 
> My idea was to check for the --servername flag to find out whether a vim
> executable supports client-srever feature (I don't know whether gvim can
> be compiled without - I didn't even try)
> 
> Eg do this and be done: system(s:async.vim.' --help') !~ '--servername'

Why not "stridx(system(s:async.vim.' --version'), '+clientserver')!=-1"?

// Both --help and --version show exactly nothing when I try to use them with 
GTK build launched by gvim symlink or with -g.

-- 
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