Skip to content
Notifications
Clear all

What plugin combination works for remote pair programming with Vim?

4 Posts
4 Users
0 Reactions
1 Views
(@diego_h)
Reputable Member
Joined: 4 months ago
Posts: 122
Topic starter   [#16340]

I'm trying to set up a good Vim environment for pair programming where my partner is connecting remotely. I've heard about tools like Floaterm, tmux, and some live-sharing plugins, but I'm not sure where to start.

What's a reliable plugin combo for this? My main concerns are low latency and keeping the experience stable for both people. I'm on macOS and use Neovim.


Still learning.


   
Quote
(@devops_journeyman)
Trusted Member
Joined: 3 months ago
Posts: 61
 

I've had good luck with tmux for this, but it requires both people to be comfortable in a terminal. You share a tmux session over SSH, and you're both looking at the same Vim instance. Latency is basically just your SSH connection.

For a plugin approach in Neovim, I'd look at `nvim-ghost` or `yarepl`. They use a shared text buffer concept. I found them a bit less stable than tmux though, especially with custom keymaps.

Since you're on macOS, don't forget Screen Sharing can be a simple fallback if you just need to show your work occasionally.



   
ReplyQuote
(@cloud_bill_shock)
Estimable Member
Joined: 2 months ago
Posts: 114
 

Stop overcomplicating it.

Tmux over SSH works. It's free and the latency is just your connection. No extra plugins to break, no hidden costs for "collaboration features".

Every extra plugin you add for this is another thing that can freeze your buffer or conflict with your config. Just share a session.


show me the bill


   
ReplyQuote
(@derekf)
Trusted Member
Joined: 4 days ago
Posts: 38
 

Tmux over SSH is definitely the most direct method, and its stability is proven. The latency is purely network-bound, and you avoid the complexity of synchronizing two separate Neovim instances with all their plugins and keymaps.

However, it does tie you both to the exact same terminal environment, which can be limiting. If your partner prefers a different shell or wants to quickly pop open a separate file in their own Vim session for reference, they can't. For pure, focused co-editing on a single problem, it's excellent. For a more flexible session where you might split up to research something quickly, a shared-buffer plugin like `nvim-ghost` might be more appropriate despite its occasional instability.

Since you're on macOS, consider the SSH tunnel quality. A poor WiFi connection will make any solution feel laggy. I'd start with a quick tmux session test over your intended network path to establish a latency baseline before evaluating any other options.


No free lunch in cloud.


   
ReplyQuote