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

Vimux with multiple tmux sessions #7

Closed
jtdowney opened this issue Apr 6, 2012 · 4 comments
Closed

Vimux with multiple tmux sessions #7

jtdowney opened this issue Apr 6, 2012 · 4 comments

Comments

@jtdowney
Copy link
Member

jtdowney commented Apr 6, 2012

Steps:

  1. Run two attached tmux sessions
  2. From session two run vim with vimux
  3. Use :PromptVimTmuxCommand and run ls

Expected:
Pane to open and run ls command

Actual:
Pane opens and no command is ran

@trptcolin
Copy link

Probably not worth a separate issue, but my tmux's list-panes command doesn't recognize -F. I've got: usage: list-panes [-as] [-t target], and I get the error on most commands. I'm on tmux 1.5 via homebrew, so I'm pretty sure I just need to update tmux (their trunk has code to handle -F, it looks like). So it might be worth documenting that for other folks with 6+ month-old tmuxes.

@benmills
Copy link
Collaborator

You're right. I'll reopen this issue and either document that requirement or try find another fix.

@foobacca
Copy link

The tmux version just bit me (I'm on Ubuntu 11.10 which has tmux 1.5 and I haven't yet found a way to upgrade tmux without compiling from source).

Running tmux -V will give you the version. I've just tried writing something but I've never written vimscript before, so I've got as far as:

let g:_TmuxVersion = split(split(system('tmux -V'), '.')[1], '.')
if g:_TmuxVersion[0] < 1 || g:_TmuxVersion[1] < 6
  echoerr "Vimux requires tmux version 1.6 or greater"
  finish
endif

but the nested split appears to cause problems. It would make life simpler if there was something like this at the top of the plugin ...

@benmills
Copy link
Collaborator

I was able to use tmux display -p which works in tmux 1.3 rather than forcing a specific version of tmux. Using tmux display -p might be the gateway to drastically reducing the complexity of vimux as a whole and possibly lead to dropping +ruby as a dependency, which would be excellent. Thanks for all your help with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants