python-rope / ropevim

vim mode that uses rope library to provide features like python refactorings and code-assists
GNU General Public License v2.0
249 stars 34 forks source link

Cache all site-packages for RopeAutoImport #57

Open erikw opened 8 years ago

erikw commented 8 years ago

Is it possible to cache all site-packages? I use many many modules daily and it would be awesome to be able to autoimport from all of them, without having to update the caching variable so often. I've tried

let g:ropevim_autoimport_modules = ["*"]

but that did not work. Thanks,

erikw commented 8 years ago

I'm using this script now

https://github.com/erikw/dotfiles/blob/personal/bin/ropevim_gen_conf_from_requirements_files.sh

which is kind of silly. It has a static list of all standard python modules, then uses find(1) and grep(1) to get all included files from requirements*.txt files in my development folders, to generates a mega ropevim_autoimport_modules that can make me import everything :P.