Last active
          October 12, 2015 12:17 
        
      - 
      
- 
        Save costis/4025267 to your computer and use it in GitHub Desktop. 
    Send to Tmux from Vim
  
        
  
    
      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
    
  
  
    
  | map <f9> :silent !tmux send-keys -t left 'ruby %' C-m<cr> | |
| map <Leader>rl :silent !tmux send-keys -t right 'ruby %' C-m<cr> | |
| # Clear screen and redrew Vim buffer. | |
| map <Leader>aa :silent !tmux send-keys -t right 'clear; ruby %' C-m<CR>:redraw!<CR> | |
| # Send current buffer to Ruby | |
| nnoremap <leader>g :execute "!tmux send-keys -t bottom 'clear; ruby '" . expand('%:p') . "\r"<cr> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment