Grey
Grey

Reputation: 1385

VIM: function name autocomplete with parameters

I am new to VIM, and I just figured out CTRL + N could auto complete the function name for me.

However, how can I get it to show parameters as well? I am using Cscope and ctags.

Thanks

Upvotes: 3

Views: 2019

Answers (2)

Lumi
Lumi

Reputation: 15264

I assume you're talking about the C programming language. If so then check out Clang Complete. Another option would be Eclim for C/C++, which is currently alpha and might not be what you want anyway. Yet another option would be using Eclipse with Vrapper.

Upvotes: 0

romainl
romainl

Reputation: 196536

Are you sure? <C-]> usually jumps to the definition of the tag under your cursor. The shortcut for completing a function name in insert mode using tags is <C-x><C-]>.

For some languages, like PHP, the omnicompletion function opens a small preview window with the signature of the function you just completed. Most omnicompletion functions don't use this trick, though.

Upvotes: 1

Related Questions