https://github.com/lambdalisue/vim-python-virtualenv
Activate python virtualenv within Vim
https://github.com/lambdalisue/vim-python-virtualenv
Last synced: 2 months ago
JSON representation
Activate python virtualenv within Vim
- Host: GitHub
- URL: https://github.com/lambdalisue/vim-python-virtualenv
- Owner: lambdalisue
- Created: 2011-12-08T20:06:25.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-08-01T11:17:12.000Z (almost 13 years ago)
- Last Synced: 2025-03-30T11:27:17.354Z (3 months ago)
- Language: VimL
- Homepage: http://www.vim.org/scripts/script.php?script_id=3840
- Size: 101 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
******************************************
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 directoryUsage
==========
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}]'And you will see something like below
.. Image:: http://hashnote.net/storage/5/preview/