I like the idea of unifying navigation between tmux panes and vim
windows. @mislav did a great job in [this gist][mislav-gist] but it depends on
using C-{h,j,k,l}
for navigation instead of vim's default C-W {h,j,k,l}
.
Tmux's bind-key
doesn't support multiple keys: just a single key with a
modifier, so if we want to keep using C-w
we have to be a bit tricky.
This approach binds C-w
to set up keybindings that a) navigate and b) unset
themselves. It turns out you can't have a bind-key
statement in your
.tmux.conf
that's too long or tmux
will segfault, which is one of the