[vim/vim] new command :xrestore to restore X11 connection after X11 server restart (#844)

182 views
Skip to first unread message

Adrian Kocis

unread,
Jun 2, 2016, 10:38:52 AM6/2/16
to vim/vim

Added new command :xrestore to reinitialize connection to X11 server. Useful after X server restarts (e.g. when running Vim for a long time inside screen/tmux and connecting from different machines). Requires +clipboard feature to be compiled in Vim.

Usage:

Reinitialize connection to X11 server running on localhost:11.0:

:xrestore localhost:11.0

Reinitialize connection while keeping X11 server from the last invocation of this command (if it was never executed with an argument, then the X11 server address is the one, that Vim read during startup from DISPLAY environment variable):

:xrestore

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/844

Commit Summary

  • added :xrestore command to restore x11 clipboard after x11 server restart (should cover connecting to stale vim in screen/tmux)
  • added argument for :xrestore to specify DISPLAY variable to use
  • added feature flag FEAT_XCLIPBOARD around the new :xrestore command
  • added documentation for the new :xrestore command
  • added new command :xrestore to Vim syntax highlighting
  • improving documentation for :xrestore command

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

OSS542

unread,
Nov 30, 2018, 9:04:56 AM11/30/18
to vim/vim, vim-dev ML, Manual

has this command been removed ?

Jeenu Viswambharan

unread,
Apr 29, 2019, 5:16:13 AM4/29/19
to vim/vim, vim-dev ML, Manual

I'm occasionally troubled by bad rendering after an X server disconnection/restart, so am looking forward to this issue getting merged!

Bram Moolenaar

unread,
May 9, 2019, 1:00:18 PM5/9/19
to vim/vim, vim-dev ML, Manual

Closed #844 via d4aa83a.

Jeenu Viswambharan

unread,
May 9, 2019, 1:23:16 PM5/9/19
to vim/vim, vim-dev ML, Manual

Seeing this has been closed, is there an alternative/workaround?

Ralf Schandl

unread,
May 9, 2019, 1:45:07 PM5/9/19
to vim/vim, vim-dev ML, Manual

@jeenuv Patch 8.1.1307 introduced then new command :xrestore. See the commit Bram used to close this pull request.

Reply all
Reply to author
Forward
0 new messages