Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Rope auto-completion (RopeCodeAssist) in vim not automatically insert results?

I am using Rope for my python auto-completion in vim. However, one thing that annoys me is that it auto-inserts its suggestions, making me unable to narrow down choices by continuing to type. This means that if I see my desired completion at the bottom of the list, I must move through the entire list with the down-arrow-key to select it.

My preferred usage would be seeing the list of suggested completions and be able to continue typing, which automatically removes items from the list that don't begin with my typed characters. An extra bonus would be the ability to then move down the list with the tab key.

In short, I would like the completion selection process to be like vim's omnicompletion when the options completeopt=longest,menu,menuone are set. Is this possible?

like image 576
kamek Avatar asked May 03 '12 09:05

kamek


1 Answers

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

Otherwise, you could check out this rope-omni plugin.

like image 94
Pi Delport Avatar answered Oct 11 '22 15:10

Pi Delport