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
7
votes
2 answers

Can Omnicomplete in Vim for python/3 complete function names or just methods?

To illustrate my question, here is a simple example of how Omnicomplete is acting on my machine: name = "Bob" na gives-----> name name. gives-----> (correct dropdown menu of methods for string) prin
user4396386
  • 423
  • 8
  • 15
7
votes
5 answers

Getting VIM to be efficient in Actionscript like Flex

I'm trying to setup VIM for editing Actionscript 3 for some upcoming Flash projects. I dislike working in an IDE and prefer VIM. Right now, I know that I want: Omnicomplete (with tab completion) Syntax highlighting (there is an actionscript.vim…
ground5hark
  • 4,464
  • 8
  • 30
  • 35
7
votes
1 answer

pythoncomplete in vim - hardcode factory function returns?

I'm using pythoncomplete omnicompletion in vim. It works great when I instantiate classes directly, eg import numpy as np x = np.ndarray(l) then x attributes complete correctly. But I work with numpy and matplotlib so usually use factory functions…
robince
  • 10,826
  • 3
  • 35
  • 48
7
votes
3 answers

Vim style Omnicomplete for emacs?

I've found several code completion elisp packages for emacs that do code completion, but most bind to a key such as M-/ to toggle completion. Is there something similar to Vim's omnicomplete where you can set it to automatically pop up a list of…
Grant Limberg
  • 20,913
  • 11
  • 63
  • 84
7
votes
1 answer

Omnicompletion stops giving useful predictions

I am trying to set up omni completion for PHP in vim 7.3 with ctags 5.9~svn20110310 on Ubuntu 12.04.1 (LTS) but I am running into a very strange issue where completion provides radically different predictions for instances of the same class. I have…
6
votes
1 answer

Vim with python support enviromental variables

If i type in the vim command line :python import os;print os.getenv('PYTHONPATH') I get a path If i close vim and on the same terminal do echo $PYTHONPATH I get another completly different path Why is this, where is vim getting this path? This is…
Guillermo Siliceo Trueba
  • 4,251
  • 5
  • 34
  • 47
6
votes
3 answers

How to tame Vim keyword (not omni) completion for Perl files?

[Update 06/2013: As user doubleDown observed, I have the terminology wrong: The handy C-p and C-n keystrokes are not omni completion (omnicompletion), but keyword completion. I think the Vim terminology is somewhat unfortunate here: omni is Latin…
Lumi
  • 14,775
  • 8
  • 59
  • 92
5
votes
1 answer

How do I change the boundaries of symbols used/detected in Vim omni completion?

For example, in Sass I'm using dashes for variable names, and I have a variable called: $hello-there If I type in he then attempt to complete it, it will only complete hello. How would I make it so that it would complete hello-there?
gak
  • 32,061
  • 28
  • 119
  • 154
5
votes
1 answer

Problem with Ruby OmniComplete in Vim 7.3 finding matches at one line but not 2 lines down

Im trying to figure out why ruby omnicompl only works sometimes for me. Here it's working as expected. But when I try the same thing on the same ivar 2 lines down I get "Pattern not found" Both are done the same way, typing out…
Patrik Björklund
  • 1,217
  • 3
  • 11
  • 25
5
votes
2 answers

How change short keys in Vim?

I am a new user in Vim. How change these keys in Zen Coding, ctr+y+, To ctr+e And also change in omni, ctr+x ctr+o To ctr+j How can I do that?
Tarek Saied
  • 6,482
  • 20
  • 67
  • 111
5
votes
2 answers

VIM - Sourcing tags from multiple locations in project

Good day, I typically work on relatively small (less than 20,000 lines of code) projects that are all self contained within a single directory, have their own Makefile, and are fairly easy to work with. VIM is my preferred editor, and when I open a…
Cloud
  • 18,753
  • 15
  • 79
  • 153
4
votes
3 answers

Vim,omnicomplete and python documentation

I started to learn Python, and I tried to setup my vim for it. I have vim 7.3.5.3, it has omnicompletion and I downloaded pyflakes. I read this article and it says that omnicompletion should also display some documentation (there is also an image…
Andna
  • 6,539
  • 13
  • 71
  • 120
4
votes
1 answer

No omnicompletion for python class members in vim?

I want to create tags (ctags 5.8) file for my classes in python.For functions, and class members defined outside the class definition omnicompletion works ok. However if I define data member in a constructor ( self.x=2 ) I cannot see the ctags…
borko84
  • 41
  • 3
4
votes
3 answers

Calling omnicompletion for every keypress in vim

I have a vim script that uses a one line window to get a filename pattern from the user. This pattern can be completed to a full filename from a database if you press CTRL-X CTRL-O. Now the only problem is that you have to press the auto completion…
ahe
  • 2,319
  • 1
  • 19
  • 22
4
votes
4 answers

How to i show omnicomplete's autocomplete list without autocompleting current text

I am learning vim with omnicomplete. I am wondering whether I can show the omnicomplete list without autocompleting current text. For example, If I type "str.c" and then invoke omnicomplete, it will show a list containing possible words starting…
Louis Rhys
  • 34,517
  • 56
  • 153
  • 221
1
2
3
8 9