sponsor Vim development Vim logo Vim Book Ad

send.vim : Send current range to STDIN of arbitrary program

 script karma  Rating 10/5, Downloaded by 758  Comments, bugs, improvements  Vim wiki

created by
Michael Goerz
 
script type
utility
 
description
Send the current range to the STDIN of an arbitrary command line program. Special support for sending text to an ipython interpreter running inside screen (via my send2screen.py script)
http://users.physik.fu-berlin.de/~goerz/blog/2008/09/integrating-vim-with-ipython/
 
install details
Put the send.vim file into your ~/.vim/plugins folder. You need to have python compiled into vim in order for this plugin to work.

You probably also want to get my send2screen.py script:
http://users.physik.fu-berlin.de/~goerz/blog/2008/09/integrating-vim-with-ipython/

Read the comments in the send.vim file for documentation.

Change settings in your vimrc:

Map keys as you like (see example at the end of the send.vim file)

Suggestion: enable ipython mode when you're in python files: add
      let b:sendToProgramMode="ipython"
to your python.vim ftplugin, or add
      autocmd BufNewFile,BufRead *.py let b:sendToProgramMode="ipython"
to your .vimrc
 

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
send.vim 2.0 2009-04-15 7.0 Michael Goerz Initial upload
ip used for rating: 3.134.104.173

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.
   
Vim at Github