I'm trying to configure vim for python development. Right now I'm working on code autocompletion feature. I'm using YouCompleteMe plugin and it seems to be working great but only when I've already imported given module. For example, if I type
I get list of available classes/modules/functions etc. What I'm missing is the possibility to get module suggestions when writing import statements. Datetime module seem to be trivial in this case, so I use Django framework as an example. I'd like to achieve something like this:
lists all modules within django, I choose one of them, e.g. views
lists all modules within django.views, I choose e.g. generic
from django.views.generic import
And then I'd like to have autocompletion of classes, functions, variables available from this module e.g.
from django.views.generic import TemplateView
Do you have any suggestion how this can be achieved?