Which of the following commands are used to put (paste) data from a buffer into a document in vim?

CORRECT TEXT
Which of the following commands are used to put (paste) data from a buffer into a document in
vim?
Each correct answer represents a complete solution. Choose two.
A
:set

CORRECT TEXT
Which of the following commands are used to put (paste) data from a buffer into a document in
vim?
Each correct answer represents a complete solution. Choose two.
A
:set

B.
p

C.
P

D.
ps

Explanation:

The commands to put data from a buffer into the document are p and P. p puts the data below the
current line and P puts the data above the current line.
What is the p command?
The p command is used to put (paste) data from a buffer into the document. If data is line oriented
(a line or a paragraph), the p command will open a new line below the current line and place the
data on this line. If data is character oriented (a letter, word, or sentence), the p command will
place the data after the cursor.
What is the P command?
The P command is used to put data from a buffer into a document. How this command works
depends on the nature of the data in the buffer. If the data is line oriented, the P command will
open a new a line above the current line and paste the data there. If the data is character oriented,
the P command will put the data before the cursor. Answer option D is incorrect. The ps command
displays the status of the current processes in Linux. Answer option A is incorrect. The :set
command lists a small number of important configuration items in vim.



Leave a Reply 0

Your email address will not be published. Required fields are marked *