Wednesday, November 26, 2008

Auto Completion of Word in Vim

If you want to auto complete a word(or variable in a program), then just press Ctrl-P in the editing mode.


For example:


com<ctrl-p> => complete.


If there is more than one possible words for completion, then vim shows a drop down list, from where you can select the desired word.

No comments: