I’ve started using Tmux w/ VIM as my primary work flow. I installed the tslime.vim plugin, which will send highlighted commands to another pane, but I wanted to send ad-hoc commands, like
:!. I added this function to the tslime.vim file, I’m sure there is a better way, but that’s what I did for now.
function! To_Tmux() let b:text = input("tmux:", "", "custom,") call Send_to_Tmux(b:text . "\\r") endfunction cmap tt :call To_Tmux()<CR>
This will allow me to type
:tt and then any needed commmand, like rake. The tslime plugin will ask which pane number, then send the command to that pane from then on. The selected pane can be changed with