Launch commands in Tmux from Vim
Use your preferred installation method for Vim plugins.
Plug 'iovis/tux.vim'
use("iovis/tux.vim")
Launch :Tux
to run a command in your last pane or create a new one. Use !
for running it in a new window.
:Tux[!] {cmd}
The command :TuxRaw
won't escape semicolons.
Launch rspec
on the current file
:Tux rspec %
Launch htop
in a new window
:Tux! htop
Run last command of last pane
:Tux Up
Execute current line in last pane
:execute 'Tux ' . getline('.')
Run rspec
for current file and line
:execute 'Tux ' . expand('%') . line('.')