Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core support for connecting to remote UI via --server #5773

Closed
xelra opened this issue Dec 15, 2016 · 10 comments
Closed

core support for connecting to remote UI via --server #5773

xelra opened this issue Dec 15, 2016 · 10 comments
Labels
enhancement feature request gsoc community: Google Summer of Code project rpc ui
Milestone

Comments

@xelra
Copy link

xelra commented Dec 15, 2016

I want to be able to connect to a Neovim session on another computer.

On the remote server I ran the following:

NVIM_LISTEN_ADDRESS=/tmp/nvim.socket nvim --headless

Then on the local machine I ran:

ssh -L /tmp/nvim.socket:/tmp/nvim.socket user@1.2.3.4
NVIM_LISTEN_ADDRESS=/tmp/nvim.socket nvim

Unfortunately that doesn't work though. Connecting to the socket via NVIM_LISTEN_ADDRESS is not possible. I've also tried it with NVIM_LISTEN_ADDRESS=/tmp/nvim.socket nvim-qt and NVIM_LISTEN_ADDRESS=/tmp/nvim.socket nyaovim.

Neovim-Qt has a --server option. Using that on my local machine nvim-qt --server /tmp/nvim.socket does work. So for now I can only connect to my remote nvim session with Neovim-Qt.

It would be great to see a --server option for the nvim binary too, so it's possible to also connect to remote Neovim sessions from the terminal.

@justinmk justinmk added the rpc label Dec 15, 2016
@justinmk justinmk added this to the 0.2 milestone Jan 8, 2017
@justinmk justinmk modified the milestones: 0.3, 0.2 Feb 4, 2017
@DoomHammer
Copy link

Hi! What's the current status of this? I have a Tmux plugin in mind that could use this.

I would like to have a global headless Neovim running all the time and be able to quickly open a new pane with Neovim UI connected to the headless instance. Tried some trickery with reptyr, but couldn't get any good results. Using break-pane and join-pane from tmux didn't help as well as it created a visilbe new window (I'd love it to be really background/transparent).

@bfredl
Copy link
Member

bfredl commented Sep 23, 2017

abduco http://www.brain-dump.org/projects/abduco/ might be a more robust alternative to reptyr.

@DoomHammer
Copy link

Thanks for suggestion @bfredl !

@geekodour
Copy link
Contributor

geekodour commented Mar 14, 2018

@bfredl is this a duplicate of #7438 ?
quoting justinmk's comment from that

Do you mean one could start a headless nvim in the background (maybe even a systemd unit) and then connect a TUI to it from any xterm window?

@bfredl
Copy link
Member

bfredl commented Mar 14, 2018

well, this issue is older, so technically that one is duplicate of this :P

@justinmk justinmk changed the title Add --server option connect to remote UI via --server May 9, 2018
@justinmk justinmk changed the title connect to remote UI via --server core support for connecting to remote UI via --server May 9, 2018
@justinmk justinmk added ui complexity:medium gsoc community: Google Summer of Code project enhancement feature request labels May 9, 2018
@justinmk justinmk modified the milestones: 0.4, todo May 9, 2018
@rjshrjndrn
Copy link

Any update on this feature? This will be a lifesaver, if you're working with remote machines(lots of them).

@shaform
Copy link

shaform commented May 5, 2019

Check out https://github.com/cdr/code-server, which allows remote connection to VSCode. And VSCode has Vim mode, so maybe it would be useful.

@rjshrjndrn
Copy link

rjshrjndrn commented May 5, 2019

@shaform Thank you for the suggestion. I checked out code-server. But that need docker in the remote server, and which won't be the case with all servers. And I don't actively use vs-code, as the vim emulation which it has can't have all mappings, plugins from my init.vim.

Note: If you are a vs-code user, there is a new plugin for remote servers and even containers. Available only in insiders though.

@zeertzjq
Copy link
Member

zeertzjq commented Jan 1, 2023

Closed by #18375

@zeertzjq zeertzjq closed this as completed Jan 1, 2023
@zeertzjq zeertzjq modified the milestones: backlog, 0.9 Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request gsoc community: Google Summer of Code project rpc ui
Projects
None yet
Development

No branches or pull requests

8 participants