Sunday, July 25, 2010

Re: Problems using `screen`ed vim-gnome vim which has survived an X crash

On 25/07/10 21:08, Ted wrote:
> Hello all,
>
> I've started using `screen` more or less religiously for a number of
> reasons. One of these is the relative instability of X: I don't want
> my vim instances to come down with the terminals that come down with
> X.
>
> I recently had my X session crash. Although `vim` instances which
> were running within `screen` survived the crash, there are numerous
> problems with them. In general I'm finding it necessary to save a
> session via `:mksession` and then restart `vim`. This is sort of a
> hassle, if only because I tend to have information in VimL variables
> and in unnamed buffers.
>
> It's probably relevant that I'm running the `vim-gnome` version of vim
> (from ubuntu 10.04). This version is somehow integrated with X even
> when running under a terminal: for example, it can access the
> clipboard via `@+` and `@*`. I would expect problems with the
> clipboard in this situation, but the issues seem more widespread.
>
> I'm keeping an [updated list][1] of "symptoms" on superuser.com;
> please check there if you're interested in the details of what doesn't
> work.
>
> Have other people encountered this problem? Is there a known solution
> or workaround? Is this an inevitable potential consequence of using
> the `vim-gnome` build?
>
> Thanks
>
> -Ted
>
> [1]: http://superuser.com/questions/167387/recovering-from-x-crash-effects-on-vim-instances-running-under-screen
>

If you want Vim (even when compiled with +X11) to run completely
independent of X, start it with the -X command-line switch. Of course,
that will disable the X clipboard and selection. It will not disable the
client-server feature though, which will _open_ a connection to the X
server if used, even in a Vim instance started with the -X switch.

See :help -X


Best regards,
Tony.
--
Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away.
-- Antoine de Saint-Exupery

--
You received this message from the "vim_use" 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

No comments:

Post a Comment