Skip to content

Using nvim remotely #1702

@kbiesiadecki141

Description

@kbiesiadecki141

Hello,

I often have to work on remote machines and I'd like to be able to run my nvim locally and connect to a server. I've seen suggestions on Reddit to do the following:

start the server:

nvim --headless --listen 0.0.0.0:9321
or whatever address:port you want

then attach with:

nvim --remote-ui --server :9321

However, I'm getting this error when starting up the server (using localhost and a random port number):
nvim: Failed to --listen: no such file or directory: "127.0.0.1:0141"

Is there a better way to go about this? I'm mainly trying to prevent myself from having to copy over my local config to the remote, otherwise I'd just run nvim there. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions