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」為重做上一個被復原的動作。
