Auto code completion in VIM?

Yang Bo picture Yang Bo · Jan 18, 2010 · Viewed 8.4k times · Source

Can VIM do auto code completion like what Eclipse does? Usually I connect to my Linux developing server through Putty from my Windows laptop. So, I hope I can find a plugin for VIM which can do drop-down menu like auto completion when I can type variable names in Putty, is this possible?

Thanks!

Answer

Greg Hewgill picture Greg Hewgill · Jan 18, 2010

Yes, in a sense - Vim has Completion commands that can help you automatically find the completion text for partial variable names.

In a nutshell, type a partial variable name and then press CtrlP to search for a matching name.