Hacker News new | ask | show | jobs
by joshbode 1411 days ago
vmux [1] might be of interest to you.

It uses the (n)vim remote API with tmux to maintain a global (n)vim session and redirects files opened via `vmux` back to the global session and switches to the window in tmux that session is visible in.

Hints:

- use `pipx` [2] to install `vmux` to make it available globally so you don't need to mess around with virtual environments.

- just `alias nvim=vmux`, and use `command nvim` if you need the real thing.

- I set the following in my profile file:

  export VMUX_EDITOR="nvim"
  export VMUX_GLOBAL="true"

  alias nvim=vmux

[1] https://github.com/jceb/vmux/

[2] https://github.com/pypa/pipx/