send.vim : Send current range to STDIN of arbitrary program
script karma |
Rating 10/5,
Downloaded by 854 |
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
|
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 3.21.122.130
|