Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 933
Grey Avatar asked Mar 29 '26 00:03

Grey


1 Answers

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.

like image 69
romainl Avatar answered Apr 02 '26 10:04

romainl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!