Configuring Vim for C++

Draco Ater picture Draco Ater · Nov 21, 2010 · Viewed 77k times · Source

I would like to make vim my C++ editor. I have very little experience working with it and need help in configuring vim to work with C++. I need such features as

  • code-complete (for stl and for my classes)
  • switching between .cc and .h files
  • may be some more tricks you, C++ and vim gurus, have.

May be you could provide some configs (with explanations), or links to tutorials, plugins I could make use of?

Answer

Thanh DK picture Thanh DK · Nov 21, 2010

Edit: Updated as of July 2013