History Report a problem
Article Edit this page Discussion

Omni Completion

From Vim Tips Wiki

Jump to: navigation, search

Proposed new tip

Please do not discuss this tip on this page, and do not edit the talk (discussion) page.

All discussion should take place on the proposed new tips page, where we will decide whether to keep this as a new tip, or whether to merge it into an existing tip.


Created: February 16, 2008 Complexity: basic Author: Metacosm Version: 7.0


Instructions for Vim 7.0

See :help new-omni-completion.

Omni completion support comes out of the box for several languages (e.g. C).

MS Windows users will also want to install [Exuberant Ctags | http://georgevreilly.com/vim/ctags.html].

C++ support

Try doing :set omnifunc while editing a C++ file.

If you get omnifunc=ccomplete#Complete as a result, it means you are presently using not C++, but the bundled C completion.

To get C++ completion support you can try installing OmniCppComplete. Please read the doc/omnicppcomplete.txt file in the archive for further help.

_Note:_ In *NIX these files go into your ~/.vim directory. In MS Windows you put them in %HOMEPATH%/vimfiles.

[edit] Comments

The above recommends the georgevreilly.com site, but that site says it has a patched version of Exubert Ctags 5.5.4, whereas the http://ctags.sourceforge.net/ official distribution is now 5.7. Also, :help ft-c-omni currently says to use the official site, and recommends 5.6 or later. --JohnBot 03:10, 1 March 2008 (UTC)


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Pushing Daisies
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Astronomy Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions


Vote for featured Wikia!

Send this article to a friend
"Omni Completion"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation