christoomey / vim-tmux-runner

Vim and tmux, sittin' in a tree...
MIT License
291 stars 37 forks source link

Using existing pane as a runner #21

Closed raine closed 9 years ago

raine commented 10 years ago

Is this possible currently?

Vimux works so that if you have a pane already open and use commands in vim it's going to default to using a pane you have adjacent to the vim pane. Would be great.

christoomey commented 10 years ago

Hello @raine,

There is an undocumented (sorry!) command to attach to an existing command: :VtrAttachToPane. This command will cause the tmux pane numbers to be displayed (via tmux's display-pane function), then Vim will prompt for the pane number to attach to.

I have plans to make this functionality a bit smarter and obviously to document it, but for now, hopefully that helps.

raine commented 10 years ago

Thanks. Works great.

christoomey commented 9 years ago

Glad to hear this worked out for you. Still planning to smarten up the pane detection stuff in the future, but I have other issues for that and so I am going to close this assuming your are getting along with the :VtrAttachToPane command. Please reopen or comment if I missed anything, and thanks for the comments!