sponsor Vim development Vim logo Vim Book Ad

tslime.vim : Send text from vim to a running tmux session

 script karma  Rating 52/16, Downloaded by 1113  Comments, bugs, improvements  Vim wiki

created by
C. Coutinho
script type
Simple script which allow you to send portion of a buffer to a running tmux session.

Based on http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/ which use screen instead of tmux.

Having some problem uploading a new version here. You can find a more up-to-date version on github: http://github.com/kikijump/tslime.vim
If you're using tmux >=1.5, go fetch tslime from there.

_How to use this script:_
  - Considering you have a running Ruby/Python/Clojure/Whatever interpreter in    window 0 of a tmux session named 'my-session'.

  - In vim, select a region in visual mode and press <C-c><C-c>.

  - You will be prompt to enter the session name.  You can type the name of the session directly, in this case 'my-session', or you can press <tab> to  cycle through all the tmux sessions that are currently running.

  - Next, you will be prompt for the window number, in this case 0. Like for session name, completion is available.

  - When you'll press enter, the text you selected will be send to your  interpreter.
install details

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tslime.vim 0.2 2010-10-30 7.0 C. Coutinho Works with tmux (>=1.3)
You can indicate which pane to paste text to.

For tmux (<1.3), you should use version 0.1 of tslime.vim
tslime.vim 0.1 2010-03-19 7.0 C. Coutinho Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
OSDN.net Logo