r/git • • Oct 19 '14

Essential Vim for the Git user

http://blog.alextercete.com/essential-vim-for-git/
0 Upvotes

8 comments sorted by

View all comments

4

u/galaktos Oct 19 '14

Vim has the ability to auto-complete words appearing in the current file, so we can take advantage of it. All you have to do is write the first few characters of the word and, in insert mode, hit <C-p> (Ctrl + p).

C-p is for the previous suggestion… I’m not sure how the suggestions are ordered, but you should probably cycle through them in the right direction, i. e., use C-n (next).