From the course: Learning vi

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Moving by words, sentences, and paragraphs

Moving by words, sentences, and paragraphs - vi Tutorial

From the course: Learning vi

Start my 1-month free trial

Moving by words, sentences, and paragraphs

In addition to moving the cursor backward and forward by characters and up and down by lines, you can also move by words, sentences and paragraphs. The keys w and b move the cursor forward a word, that's what the w stands for, or back a word, that's what the b is. You can also use e, to move forward to the end of the current word if you're in a word or to the end of the next word if you're at the beginning of the word. So w will go to the beginning of the next word, whereas e will go to the end of the current word. The commands parenthesis forward and back. The right parenthesis moves the cursor forward to the beginning of the next sentence. The left parenthesis moves the cursor backward to the beginning of the current sentence or to the beginning of the previous sentence. And likewise, the curly brace moves the cursor forward a paragraph or back a paragraph. A sentence is determined by via using punctuation and space. Whereas a paragraph is delimited by a line which is completely…

Contents