sponsor Vim development Vim logo Vim Book Ad

vim-python-virtualenv : Activate python virtualenv within Vim

 script karma  Rating -1/1, Downloaded by 908  Comments, bugs, improvements  Vim wiki

created by
Alisue Lambda
 
script type
ftplugin
 
description
vim-python-virtualenv

This plugin is for using virtualenv within Vim. It activate the virtualenv and add the path to sys.path

Also this plugin save virtualenv name to pythonworkon variable of vim.
Required

Vim compiled with +python
How to install

Using vundle or pathogen is recommended or simply extract to your vim directory
Usage

This plugin save virtualenv name to pythonworkon variable of vim so if you want to check the name of virtualenv in status line, add the following code to your .vimrc:

" Apply g:pythonworkon to statusline

let &statusline='%F%m%r%h%w [FORMAT=%{&ff}] [ENC=%{&fileencoding}] [TYPE=%Y] [ASCII=%03.3b] [HEX=%02.2B] [POS=%04l,%04v][%p%%] [LEN=%L] %= [WORKON=%{pythonworkon}]'

Developed at https://github.com/lambdalisue/vim-python-virtualenv
 
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
vim-python-virtualenv.tar.gz 0.1 2011-12-08 7.0 Alisue Lambda Initial upload
ip used for rating: 54.204.117.206

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