When I press tab for autocompletion (with the supertab plugin, but its applicable with vim's autocomplete feature as well), the selection scrolls from the bottom-most selection towards top with the selection text being replaced under the cursor. Is it possible to prevent replacing the text under the cursor, maybe my preventing scrolling even if I press tab multiple times.
In the end, the behaviour would be same as how bash works.. You keep typing and pressing tab until you get the required word. No scrolling through the suggestions.
The behaviour would be similar to:
but with a menu only for previewing the suggestions.
The one below allows it for just the first tab. Another tab starts scrolling through the menu. The behaviour I expect is to show a menu only for showing suggestions, no scrolling.
Why do I require this behaviour? Say, these are the available words:
I intend to write
FooBarFoo. I type
set completeopt=longest,menu,noselect, it autocompletes to
Foo and show the menu with the remaining suggestions. Now I type
FooB<tab> and it starts scrolling and autocompletes to one of the suggestions. Here, I expect it to again complete to the longest word
FooBar and show valid suggestions.