Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code completion in Vi editor [duplicate]

Tags:

vi

editor

Is there an autocomplete feature for Vi? ctrlp looks for keywords already used in the document. But suppose I want a.funcname to automatically show members of object a. Is it possible with Vi?

like image 731
Rohit Banga Avatar asked Dec 14 '22 01:12

Rohit Banga


1 Answers

YouCompleteMe. It’s a plugin that offers extremely fast, fully syntax-aware auto-completion. It furthermore shows code errors on the fly (by putting a marker inside the margin next to the offending line).

So far, C++, C# and Python are natively supported. However, the plugin has an easily accessible API to add support for more languages.

There are other plugins but with the exception of Jedi (for Python only) nothing comes even close to working properly.

like image 200
Konrad Rudolph Avatar answered Dec 21 '22 23:12

Konrad Rudolph