Autocompletion in Vim

diegocstn picture diegocstn · Mar 2, 2011 · Viewed 354.9k times · Source

I'm having trouble with autocompletion. How can I get a code suggestion while I'm typing?

I usually develop in PHP, Ruby, HTML, C and CSS.

Answer

Orbit picture Orbit · Mar 2, 2011

Use Ctrl-N to get a list of word suggestions while in insert mode. Type :help i_CTRL-N to see Vim's documentation on this functionality.

Here is an example of importing the Python dictionary into Vim.