AutoComplete for gtk3 and pygobject

I am looking for an opportunity to add autocompletion for gtk3 libs in vim. I already tried vim-jedi as it seems to be a modern autocomplete mechanism for vim and python (also recommended here ), but this does not work for gtk3 material that is imported from gi.repository

from gi.repository import Gtk, GdkPixbuf, Gdk, GObject 

I looked at the gi.repository sites. After that, I am not surprised that the Jedi is not able to reveal the methods of the Gtk modules, because these modules are generated there with a lot of magic ;-)

In addition, other "real" IDEs, such as PyCharm , also do not support completion for modules that were imported this way (I tried Community Edition, but I bet that Professional Edition also does not support this).

Does anyone have an idea how to add autocomplete to vim (preferred solution) or another editor / IDE?

GObject, Gtk modules contain quite a lot of methods / classes, and it’s not easy for you to repeat everything you need. Also, it seems that there is only documentation for the C api gtk3, where the method names are not always the same as in the python api ...

+6
source share
1 answer

Neocomplcache / Neocomplete is able to complete but it is very likely that it will work if you do not compile Vim yourself against GTK + 3. On Ubuntu 14.04, Vim compiles against GTK + 2, and attempts to import and autofill GTK + 3 libraries will fail, because both tools may not work at the same time.

+2
source

All Articles