Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

A. i (lowercase)
B. P (uppercase)
C. p (lowercase)
D. U (uppercase)
E. u (lowercase)

题解

选项 A,「i」为在目前光标处进入插入模式(Insert mode)。「I」则为在目前所在列的第一个非空白字符处进入插入模式。

选项 B,「P」为在目前光标的上一列粘贴剪贴板中的数据。

选项 C,「p」为在目前光标的下一列粘贴剪贴板中的数据。所以答案是选项 C。

选项 D,「U」为复原目前所在列的所有修改。

选项 E,「u」为复原上一个动作。「[Ctrl]+r」为重做上一个被复原的动作。