preservim / vimux

easily interact with tmux from vim
MIT License
2.21k stars 161 forks source link

Unexpected behaviour when running outside of tmux #203

Closed samuelallan72 closed 3 years ago

samuelallan72 commented 3 years ago

Sometimes I accidentally run a Vimux command when my vim instance is outside of a tmux session (blame muscle memory :P).

What it does: open or use a pane in a separate tmux session. This is undesired because that pane or tmux session may be already running something important, or end up running a dangerous command/env/cwd combination.

What it should do: abort with a warning about running outside of tmux.

This was an issue that was fixed in https://github.com/preservim/vimux/pull/15 , but since then has been unfixed.