Ask Your Question
1

How to get autocompletion in Vim (c++)

asked 2011-11-29 11:09:26 -0500

shaiton gravatar image

updated 2011-11-29 11:24:05 -0500

I could not find a package adding [c++ and other] autocompletion plugin to Vim. I am not looking for manual config, just looking for a yum package name.

If there is no package then, please tell me about your preferred solution.

Edit: vim-omnicppcomplete could be nice, but not found using yum.

edit retag flag offensive close merge delete

Comments

clang completion looks nice also

shaiton gravatar imageshaiton ( 2011-11-29 15:57:40 -0500 )edit

2 Answers

Sort by » oldest newest most voted
1

answered 2011-11-29 11:29:11 -0500

updated 2011-11-29 11:29:47 -0500

I was going to suggest omniautocomplete. You are correct, it is not a package.

See: http://nothingtechnicalaboutit.blogspot.com/2011/08/vim-how-to-setup-awesome-autocomplete.html

edit flag offensive delete link more

Comments

Nice link, thanks. Gonna do this. But I don't like to have to install it manually… Will see.

shaiton gravatar imageshaiton ( 2011-11-29 13:15:40 -0500 )edit

I can understand now wanting to install manually, hopefully it will go well for you.

bodhi.zazen gravatar imagebodhi.zazen ( 2011-11-29 13:55:42 -0500 )edit

Ok, I've written the spec file, will see if could be in the repo. Cheers, it works :)

shaiton gravatar imageshaiton ( 2011-11-29 14:42:32 -0500 )edit
0

answered 2011-11-29 14:06:11 -0500

FranciscoD_ gravatar image

Vim has inbuilt auto-complete features. Have you looked at: http://vim.wikia.com/wiki/Anywordcompletion ? This generally suffices for me.

edit flag offensive delete link more

Comments

oh nice! I did'n know that. But works only on the current file. And generally, a software consists on many files :)

shaiton gravatar imageshaiton ( 2011-11-29 14:31:21 -0500 )edit

You didn't read the page completely ;) "The 'complete' option controls where the keywords are searched (include files, tag files, buffers, and more)". Since ctags and cscope are widely used with vim, this will work for the entire tag database, not just the current file.

FranciscoD_ gravatar imageFranciscoD_ ( 2011-11-30 04:18:52 -0500 )edit

ok, gonna try! omnicppautocomplete is like a dead project (last commit in 2007), this could be more efficient. Want to try also the clang_completion.

shaiton gravatar imageshaiton ( 2011-11-30 04:35:45 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2011-11-29 11:09:26 -0500

Seen: 1,303 times

Last updated: Nov 29 '11