Can rope autocomplete (RopeCodeAssist) in vim not automatically insert results?

I am using Rope for my python autocompletion in vim. However, it annoys me that he automatically inserts his sentences, not allowing me to narrow my choices while continuing to type. This means that if I see my desired end at the bottom of the list, I have to move the entire list using the down arrow key to select it.

In my preferred use, you will see a list of proposed add-ons and you can continue to print, which automatically removes items from the list that do not start with the characters you entered. An added bonus is the ability to move the list down using the tab key.

In short, I would like the completion selection process to be similar to vim omnicompletion when the completeopt=longest,menu,menuone . Is it possible?

+6
source share
2 answers

python-mode sets Vim omnifunc to use Rope termination, which should do what you want.

Otherwise, you can check this plugin for plugins .

+1
source

rope-omni plugin was merged into a standard ropevim into this commit . And yes, https://github.com/python-rope/ is now the official home for all rope projects.

0
source

Source: https://habr.com/ru/post/914793/


All Articles