QuestionQ76

VerifiedEssential Commands

In the vi editor, how can commands—such as moving the cursor or copying lines into the buffer—be executed multiple times or applied across multiple rows?

Explanation

A numeric count immediately preceding a vi normal-mode command repeats or extends that command. For example, 4l moves the cursor four characters to the right, and 2yj yanks two lines into the buffer.

Community Discussion

No comments yet. Be the first to start the discussion!