Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Vim python interpreter helper
branch: master

Add license

Signed-off-by: Hector Acosta <hector.acosta@gmail.com>
latest commit 0eed0da3b7
Hector Acosta authored
Failed to load latest commit information.
debian Fix some lintian errors
README.md Add both version and download badges
setup.py Add license
vim.py Execute on mtime modification rather than file changes

README.md

PyPI version PyPI downloads

python-vim

Want to quickly test the output of a function, so you open up your trusty python REPL and start typing away.

After a while you need nested for loops, or want to save a copy of the stuff you wrote. Or copy just a bit of code from your project.

Here's where python-vim comes in, it allows you to run a vim() session inside your REPL env, after you save your code, it will get executed, don't worry! you'll still have access to everything you defined inside your vim session.

Usage

$ python

>>> from vim import vim

>>> vim()

# Vim session opens, type your code here, save and exit

foo = 'bar'
for i in foo:
    print i

<esc>:x

b

a

r

>>> foo

'bar'

Installing

  • Using pip:
$ pip install python-vim

Protip

Add this to your .pythonrc file:

from vim import *

Something went wrong with that request. Please try again.