I do a lot of Python and I use almost all the time a virtualenv along with virtualenvwrapper to keep my modules organised.
But when I want to use those plugin from inside vim, through an external command, it seems that the shell is not aware of that config.
I need to have access to the virtualenv
because
e.g.
(venv) $ python
>> import simple_history
>> # OK here
(venv) $ vim
:!python
>> import simple_history
ImportError: No module named simple_history
My shell is shell=/bin/zsh
, I guess I need to use this setting to access my virtualenv
, but I can't figure out how...