Git Product home page Git Product logo

vim-pipenv's Introduction

pipenv.vim

Inspired by and using vim-virtualenv, vim-pipenv detects the venv of the pipenv projects you open and activates the corresponding venv.

pipenv-vim will auto-detect the pipenv of any python file you open, and if auto-switching is enabled, will switch to the corresponding venv (see :help pipenv for options).

You can also issue commands to pipenv with the :Pipenv command, of which the output will be displayed once the command is done (which.. can take some time. Working on it.).

This is still very much a work in progress, and has only been tested in Linux ;)

the author

Usage Examples

Get help

:help pipenv

See pipenv graph

:Pipenv graph

Install & lock pyyaml in dev packages

:Pipenv install pyyaml --dev

Activate Pipenv venv for current file

:Pipenv

:Pvv is provided as alias for :Pipenv

Use <tab> to switch between available commands.

Installing

vim-pipenv depends on the excellent vim-virtualenv: make sure you install it too (or just follow guidelines bellow to install both at the same time)

Using pathogen

First make sure you have Pathogen, then

cd ~/.vim
mkdir -p bundle && cd bundle
git clone https://github.com/PieterjanMontens/vim-pipenv
# Install vim-virtualenv as well
git clone https://github.com/plytophogy/vim-virtualenv

Vundle

Using Vundle, install goes like this:

Add these lines to your vundle plugins in your .vimrc

Plugin 'plytophogy/vim-virtualenv'
Plugin 'PieterjanMontens/vim-pipenv'

Open vim and run :PluginInstall.

Updating

Using git:

git -C ~/.vim/bundle/vim-pipenv pull

Using Vundle from within vim: :PluginUpdate

Removing

rm -rf ~/.vim/bundle/vim-pipenv

With Vundle: remove corresponding plugin line from .vimrc and run :PluginUpdate

vim-pipenv's People

Contributors

pieterjanmontens avatar pgilad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.