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'

The slower alternative is:

  let tmp = tempname()
  let cmd = 'vim -u NONE -U NONE -N  -c '. shellescape('call 
writefile([has("clientserver")],'.string(tmp).')').' -c'.shellescape('qa!')
  call system(cmd)

If we are at it: WHy is vim starting a ( .. ) subshell when running
bash? ( command ) ?

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