Units of Measure

Many vim commands operate on a block of text—from one character to many paragraphs. You can specify the size of a block of text with a Unit of Measure. You can specify multiple Units of Measure by preceding a Unit of Measure with a Repeat Factor (page 463). This section defines the various Units of Measure.

Character

A character is one character, visible or not, printable or not, including SPACEs and TABs. Some examples of characters are

							a  q  A  .  5  R  –  >  TAB SPACE 

Word

A word, similar to an ordinary word in the English language, is a string of one or more characters bounded on both sides by any combination of one or more of the following elements: a punctuation mark, SPACE, TAB, numeral, or NEWLINE. In addition, vim considers ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.