Am Dienstag, 29. August 2006 11:44 schrieb Bram Moolenaar: > Martin Krischik wrote: > > When gvim is started in gui mode but cannot connect to the X-Server it > > falls back to terminal mode. > > > > I would which that this feature could be disabled as it caused serious > > problems when gvim is started as background task - in which case the > > now simple vim has a terminal to display but no keyboard to accept > > commands from. > > > > Martin > > > > PS: Please remember that on some operating systems gvim allways starts > > as if --nofork has been set. > > There appears to be no way to do something in this situation. How about > adding a GUIFailed event? Then you can do: > > au GUIFailed * qall > > GUIFailed would be done in the same position as GUIEnter, but when it > failed to start.
That is even cooler then my idea of having a setting as it could be used for more then just qall. I am thinking of others here as qall is all I could do to solve my problem at hand. (with solving being "xhost +..." or a "SET Display ..." or whatever went wrong this time round). Martin -- Martin Krischik mailto://[EMAIL PROTECTED]
pgp91FJSqMfBj.pgp
Description: PGP signature