O'Reilly logo

Hacking Vim by Kim Schulz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Auto-Completion

As a Vim user that obeys the philosophy of Vim, you will do anything to minimize the number of key presses—because extra keys pressed equals extra time wasted.

So why type each word to the end, when Vim is able to guess what you are typing and automatically complete the word for you?

In Vim, there are multiple ways to auto-complete the words you are typing. Some methods simply complete words you have written once in one of the opened buffers, while others involve analyzing the code you are working on—not just the current file, but the entire source tree.

In the following sections, we will look at three different ways to use auto-completion in Vim:

  • Auto-completion with known words
  • Auto-completion using a dictionary file
  • Context-aware ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required