Cover 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

O'Reilly logo

Using autocompletion

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 autocomplete 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 autocompletion in Vim:

  • Autocompletion with known words
  • Autocompletion 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