Skip to content

Instantly share code, notes, and snippets.

@brycemcd
Created September 28, 2012 16:44
Show Gist options
  • Save brycemcd/3800865 to your computer and use it in GitHub Desktop.
Save brycemcd/3800865 to your computer and use it in GitHub Desktop.
tmux and vim integration
" test the current file in the next tmux window
nmap <leader>tt :!tmux send-keys -t 1 "rspec %" C-m <cr>
" test the line from user input
nmap <leader>tl :!tmux send-keys -t 1 "rspec %:<C-r>=line('.')<cr>" C-m <cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment