-
-
Save maxjustus/3801002 to your computer and use it in GitHub Desktop.
tmux and vim integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command! -nargs=1 Silent | |
\ | execute ':silent !'.<q-args> | |
\ | execute ':redraw!' | |
" test the current file in the next tmux window | |
nmap <leader>tt :Silent tmux send-keys -t 1 "rspec %" C-m <cr> | |
" test the line from user input | |
nmap <leader>tl :Silent 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