Coacher / vim-virtualenv

Better Python virtual environments support for Vim
2 stars 0 forks source link

Usage with venv without global .virtualenvs folder #3

Closed Konfekt closed 1 week ago

Konfekt commented 1 week ago

For example, I create a virtual environment in the current work dir by virtualenv .. Now I'd like to activate it by :VirtualEnvActivate but of course I am always thrown back to missing a central user dir

vim-virtualenv: '/home/konfekt/.virtualenvs' is not a directory
Error detected while processing function virtualenv#activate:
line   36:
E121: Undefined variable: s:state
E116: Invalid arguments for function has_key(s:state, 'virtualenv_directory') && (l
:target ==# s:state['virtualenv_directory'])

and then

Error detected while processing function virtualenv#activate:
line   36:
E121: Undefined variable: s:state
E116: Invalid arguments for function has_key(s:state, 'virtualenv_directory') && (l
:target ==# s:state['virtualenv_directory'])
Konfekt commented 1 week ago

Duplicate of #2