Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sansyrox/vim-python-virtualenv
A vim plugin which automatically manages the python virtual envs for you
https://github.com/sansyrox/vim-python-virtualenv
Last synced: 26 days ago
JSON representation
A vim plugin which automatically manages the python virtual envs for you
- Host: GitHub
- URL: https://github.com/sansyrox/vim-python-virtualenv
- Owner: sansyrox
- License: mit
- Created: 2020-11-03T10:07:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-25T06:07:47.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T13:49:13.247Z (about 1 month ago)
- Language: Vim script
- Size: 3.91 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-python-virtualenv
A vim plugin which automatically manages the python virtual envs for you. Almost zero config required.
## Installation
You can install the plugin using the following command:
`Plug 'sansyrox/vim-python-virtualenv'`
Now, you need to set your python host prog in your vimrc.
` let g:python3_host_prog='/usr/bin/python3'`
This step assumes that you have python installed as you are managing virtualenvs of python.
## Usage
1. Start your venv, e.g.: `source venv/bin/activate`
2. Start Vim from the same session: `vim/nvim .` (At this point the plugin will do it's magic and you can reference the venv specific modules from vim directly)