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?

A. By using the command :repeat followed by the number and the command.
B. By specifying the number right in front of a command such as 4l or 2yj.
C. By selecting all affected lines using the shift and cursor keys before applying the command.
D. By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.

题解

选项 A,没有这样的用法。

选项 B,「4l」表示将光标向右移 4 格,「2yj」会拷贝目前光标所在之列开始算起的三行。

选项 C,shift 加上方向键,只会让光标移动的距离加大。

选项 D,没有「repetition」这个设置选项。