101-400 Exam QuestionsBrowse all questions from this exam

101-400 Exam - Question 41


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?

Show Answer
Correct Answer: C

In vi editor, the 'p' (lowercase) command is used to paste the previously deleted or yanked content below the current line. After deleting the text with a command like 'dd' (for deleting lines), moving the cursor to a different line, and pressing 'p' will insert the deleted lines right below the current cursor position.

Discussion

1 comment
Sign in to comment
DuboisNicolasDuclairOption: C
Oct 21, 2023

The single character command that will insert the deleted content below the current line in vi is: C. `p` (lowercase) After deleting text in vi, you can use the `p` command to paste the deleted content below the current line. This command is used for pasting text in vi's normal mode.