Thanh Thảo
New member
How do you copy a line in vi?
Answer
Press the ESC key to be sure you are in vi Command mode. Place the cursor on the line you wish to copy.
Type yy to copy the line
. Move the cursor to the place you wish to insert the copied line.
Answer
Press the ESC key to be sure you are in vi Command mode. Place the cursor on the line you wish to copy.
Type yy to copy the line
. Move the cursor to the place you wish to insert the copied line.