nerdexam
LPI

101-400 · Question #109

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

The correct answer is B. By specifying the number right in front of a command such as 4l or 2yj. See the full explanation below for the reasoning.

Question

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

Options

  • ABy using the command :repeat followed by the number and the command.
  • BBy specifying the number right in front of a command such as 4l or 2yj.
  • CBy selecting all affected lines using the shift and cursor keys before applying the command.
  • DBy issuing a command such as :set repetition=4 which repeats every subsequent command 4

How the community answered

(20 responses)
  • A
    20% (4)
  • B
    70% (14)
  • C
    5% (1)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice