I'm using Ctrl-[vim movement keys] to change panes in Tmux (C-j moves to the pane below, etc.). Often I have a Vim window open with several splits. Is there a way for tmux to recognize vim is open in a pane, and to pass the "select the next vim split down" with C-j? Maybe it would look something like this:
bind -t C-j
if in vim
C-W-J # move to next vim split down
else
select-pane -D # move to next tmux pane down
vi
a wrapper which changes the tmux keytable, then opens the file, and resets the keytable on exit. Or you could do the keytable change in vim startup/shutdown scripts. – William Pursell