Re: How can a script know if we're running without X ?

2007-03-14 Thread hermitte
A.J.Mechelynck [EMAIL PROTECTED] wrote: The ps solution is difficult to use, because there may be several instances of Vim running in parallel (whose prognames might or might not be different) and I want to make sure to access the current instance: so I would have to know the process ID of the

Re: How can a script know if we're running without X ?

2007-03-14 Thread A.J.Mechelynck
[EMAIL PROTECTED] wrote: A.J.Mechelynck [EMAIL PROTECTED] wrote: The ps solution is difficult to use, because there may be several instances of Vim running in parallel (whose prognames might or might not be different) and I want to make sure to access the current instance: so I would have to

Re: How can a script know if we're running without X ?

2007-03-14 Thread Dimitar
* A.J.Mechelynck [EMAIL PROTECTED] [070314 07:50]: How can a Vim script know if we're running without an X connection? What about if has('gui') ? Of course, some cases are obvious, such as if has('unix') !has('x11') meaning we're on Unix with no X11 support compiled-in. But

Re: How can a script know if we're running without X ?

2007-03-14 Thread A.J.Mechelynck
Dimitar wrote: * A.J.Mechelynck [EMAIL PROTECTED] [070314 07:50]: How can a Vim script know if we're running without an X connection? What about if has('gui') ? No. This wouldn't distinguish a version -gui +x11 +clipboard +clientserver running in a non-x console (with no clipboard and no

How can a script know if we're running without X ?

2007-03-13 Thread A.J.Mechelynck
How can a Vim script know if we're running without an X connection? Of course, some cases are obvious, such as if has('unix') !has('x11') meaning we're on Unix with no X11 support compiled-in. But what about an X-enabled Vim running in console mode, either with the -X command-line

Re: How can a script know if we're running without X ?

2007-03-13 Thread Cameron Simpson
On 13Mar2007 23:29, A.J.Mechelynck [EMAIL PROTECTED] wrote: | How can a Vim script know if we're running without an X connection? | Of course, some cases are obvious, such as | if has('unix') !has('x11') | meaning we're on Unix with no X11 support compiled-in. | | But what about an

Re: How can a script know if we're running without X ?

2007-03-13 Thread A.J.Mechelynck
Cameron Simpson wrote: On 13Mar2007 23:29, A.J.Mechelynck [EMAIL PROTECTED] wrote: | How can a Vim script know if we're running without an X connection? | Of course, some cases are obvious, such as | if has('unix') !has('x11') | meaning we're on Unix with no X11 support compiled-in. | |

Re: How can a script know if we're running without X ?

2007-03-13 Thread Luc Hermitte
Hello, * On Tue, Mar 13, 2007 at 11:29:28PM +0100, A.J.Mechelynck [EMAIL PROTECTED] wrote: How can a Vim script know if we're running without an X connection? Of course, some cases are obvious, such as if has('unix') !has('x11') meaning we're on Unix with no X11 support

Re: How can a script know if we're running without X ?

2007-03-13 Thread A.J.Mechelynck
Luc Hermitte wrote: Hello, * On Tue, Mar 13, 2007 at 11:29:28PM +0100, A.J.Mechelynck [EMAIL PROTECTED] wrote: How can a Vim script know if we're running without an X connection? Of course, some cases are obvious, such as if has('unix') !has('x11') meaning we're on Unix with no