zzzbbx
zzzbbx

Reputation: 10131

Vim code completion

Is it possible to make Vim complete the code for you, like in any other IDE (not just word searching, but members of classes, methods etc.)?

What are the best options / plugins available?

Upvotes: 10

Views: 11162

Answers (7)

user427390
user427390

Reputation:

This is a little out dated. A rising star in Vim code completion is the "YouCompleteMe" plugin. Check it out here.

Upvotes: 7

SergioAraujo
SergioAraujo

Reputation: 11790

I believe that following this list of links you will be able to leave any IDE and become a faithful user of vim, see some plugins that help you with IDE resources...

Upvotes: 11

Alan Christopher Thomas
Alan Christopher Thomas

Reputation: 4550

Omni completion is definitely the way to go. Instantiate it in insert mode with Ctrl+X Ctrl+O.

I use it in conjunction with SuperTab as well to allow for tab completion similar to bash shell.

Upvotes: 6

Cam
Cam

Reputation: 709

Clang Complete lets you use Clang for accurate auto-completion of C and C++

Upvotes: 12

Gohan
Gohan

Reputation: 2460

You can try this out Dictionary completions, get dictionary for you language. Simple ways

if you are programming in c++, there are ctag and cscope and with OmniCppComplete plugin.

Hope it will help

Upvotes: 2

Loki Astari
Loki Astari

Reputation: 264331

Don't use it myself but I have heard of Omni complete:

http://vim.wikia.com/wiki/Omni_completion

The Vim Wiki contains a couple of things that may be of use for auto completion of words.

Upvotes: 3

Arafangion
Arafangion

Reputation: 11906

It's possible, but most people don't.

vim is a fairly generic editor, that said, it does contain some "code completion" features such as word completion, etcetera, but nothing like the likes of, say, Delphi's IDE.

Such a system could be added by scripting vim - vim can directly run several scripting languages that make this easy, or you could send the file through an external script.

Upvotes: -6

Related Questions