Questions tagged [omnicomplete]

Omnicomplete is the name of the Vim feature which provides smart autocompletion. A popup menu offers word completion choices that may include struct and class members, system functions, and more. It is similar to Microsoft's IntelliSense.

121 questions
60
votes
8 answers

How do I map ctrl x ctrl o to ctrl space in terminal vim?

After searching a bit on the net it seems that I can't map CtrlSpace to anything/alot. Is there a way to do it today, what I found was usually 2 years old.
plitter
  • 765
  • 1
  • 8
  • 11
53
votes
10 answers

Vim's Omnicompletion with Python just doesn't work

I've searched around for an hour, both on Stack Overflow and elsewhere. Alas! Please help. Vim's omnicompletion just doesn't work. I have Vim 7.2 compiled with Python support. filetype plugin on is in my .vimrc. When a .py file is open, :echo…
a paid nerd
  • 30,702
  • 30
  • 134
  • 179
31
votes
2 answers

Vim Python completion

I'm having trouble with Vim and Python completion. In fact I'm totally confused how does this work. I have generic gvim 7.3, on windows 7 (with python/dyn) I'm using SuperTab plugin, amongst many others, some of which are python-specific, with…
Goran Novosel
  • 549
  • 2
  • 6
  • 10
25
votes
2 answers

vim omnicomplete vs. vim intellisense

Are Vim OmniComplete and Vim Intellisense mutually exclusive or complementary? I'm a bit confused by conflicting terminology and implementations, such as these C++ OmniComplete and C++ Intellisence plugins.
Robert S. Barnes
  • 39,711
  • 30
  • 131
  • 179
24
votes
3 answers

How to trigger omnicomplete/auto-completion on keystrokes in INSERT mode?

VIM's omnicomplete autocompletion is not really working as expected. Is there a way to make it smarter? Like, to monitor the context of surround text? (e.g. don't trigger if within comments or quotes) I ask because I cannot get to a happy place…
eduncan911
  • 17,165
  • 13
  • 68
  • 104
19
votes
5 answers

Vim omnicompletion for C#

I was wondering if there is any tool like OmniCppComplete for C# (method signature shown in the abbreviation is what I'm most interested in). I've searched everywhere with not avail. Update: I'll be editing mostly from a shell terminal so please…
Jean-Pierre Chauvel
  • 946
  • 2
  • 9
  • 21
15
votes
4 answers

Is there a way to change the behavior of the vim omnicomplete menu?

Omnicompletion is working, but it automatically inserts the first result. What I'd like to do is open the omnicomplete menu, then be able to type to narrow down the results, then hit enter or tab or space or something to insert the selected menu…
andrew
  • 1,173
  • 2
  • 18
  • 28
12
votes
1 answer

Vim omni completion: continue typing to select desired item

Consider the scenerio when I have typed: file.f When I type Ctrl-XCtrl-O the omni-completion popup is shown and the first item is selected. This is what I see: file.fileno --------- fileno() <-- highlighted flush() …
alex2k8
  • 42,496
  • 57
  • 170
  • 221
12
votes
1 answer

Vim omnicompletion: optional preview window

I've searched for different types of workarounds to deal with the preview window splitting the current window to display documentation when doing a selection in Omnicompletion, like closing the preview window if it exists when you leave insert…
alfredodeza
  • 5,058
  • 4
  • 35
  • 44
11
votes
2 answers

Vim + OmniCppComplete: Completing on Class Members which are STL containers

Completion on class members which are STL containers is failing. Completion on local objects which are STL containers works fine. For example, given the following files: // foo.h #include class foo { public: void set_str(const…
Robert S. Barnes
  • 39,711
  • 30
  • 131
  • 179
11
votes
4 answers

Vim omnicompletion for Java

I've read heaps of blogs on Vim's supposedly great omnicompletion, and yet no matter what I do I can't get it to work satisfactorily. It took me ages to figure discover that the version of ctags that is preinstalled on my system was the emacs one,…
Robbie
  • 111
  • 1
  • 1
  • 3
10
votes
1 answer

Vim status bar prediction/completion?

I played with some vim scripting yesterday and managed to get some over-the-status-bar prediction to whatever I'm typing at the moment, with cycling - see screenshot (gray + yellow bar). Problem is, I can't remember how I got that or find the code…
sa125
  • 28,121
  • 38
  • 111
  • 153
9
votes
2 answers

Is there any way to set up good autocompletion for Ruby in Vim?

I've been trying to set up Vim autocompletion for Ruby code and have not been successful. I mean things "work", but I would expect a better plugin or configuration to be available. I've set up the rubycomplete plugin and it is doing a decent job,…
bluediapente
  • 3,946
  • 5
  • 32
  • 38
9
votes
6 answers

Is there any way to get python omnicomplete to work with non-system modules in vim?

The only thing I can get python omnicomplete to work with are system modules. I get nothing for help with modules in my site-packages or modules that I'm currently working on.
andrew
  • 1,173
  • 2
  • 18
  • 28
7
votes
1 answer

Is VIM omni-completion really so limited? Or am I missing something?

Ruby: file = File.new("some.txt", "r") lines = file.readlines Omni-completion tests file.readl --------- readline <- PASSED readlines --------- "hola".capital --------- capitalize <- PASSED capitalize! …
alex2k8
  • 42,496
  • 57
  • 170
  • 221
1
2 3
8 9