Vim, tmux and vimux

Hey, vim + tmux calling again!

If you know me by now, you know I feel really happy if I'm able to work without touching the mouse at all. In this particular case I wanted to run the tests while working in the project.

I could just open a new tmux pane, run the tests command there and go back to vim, but if there is a plugin that can save me a couple of keystrokes... I need to test it!.

tmux, vim, vimux

You can open the gif to appreciate the "work". The plugin is called Vimux and it just opens a tmux pane (or window), execute the command you want, and go back to vim. The configuration I wrote (~/.vimrc):

"---------------------------------------------------------
"------------- Vimux
"---------------------------------------------------------
let g:VimuxHeight = "20"
let g:VimuxOrientation = "v"
" let g:VimuxRunnerType = "pane"
map rr :call VimuxPromptCommand()
map rl :call VimuxRunLastCommand()
map rc :call VimuxCloseRunner()

Easy peasy!.

About the author

Óscar
has doubledaddy super powers, father of Hugo and Nico, husband of Marta, *nix user, Djangonaut and open source passionate.
blog comments powered by Disqus