← All lessons

3. Basic Navigation

Step 5 of 6

Making bigger strides

Very rarely, when editing text, are you concerned with the individual characters. More often, you’re interested in the larger structure that those characters represent. It’s far more efficient to think in terms of words, sentences, and paragraphs instead of individual characters.

Luckily, Vim has commands that can help us here.

Words

In terms of words, Vim offers the following commands:

WORDS

That’s not a typo. Vim makes a distinction between ‘words’ and ‘WORDS’. Without getting to deep into the details, a ‘word’ generally represents what you might think intuitively as a word. A ‘WORD’, on the other hand, is consists entirely of non-blank characters.

The motions for WORDS are just the uppercase of the word motions.

Sentences

If you are a writer, you’ll surely find this handy. You can use ( and ) to jump forward and backward between sentences.

Paragraphs

You can use { and } to jump forward and backwards between paragraphs. This doesn’t just mean paragraphs of prose, though — it’s really useful for jumping around blocks of code if you’re a software engineer.

Give these commands a try in the editor!

Loading editor…