I just installed omnicomplete plugin, does it support header auto completion?
When I typed #include <, is it possible to provide a list of header files to complete?
Many thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can just use the vim autocomplete feature, which was introduced in vim7.
Just type in first few characters and press
Ctrl->P(for backward search)orCtrl->N(for forward search), vim lists down all options available or completes it.And Yes it works even for header files.
To make this work you should install ctags
In
usr/includeadd:Add this to your
.vimrc