How do you copy and paste lines in vi?

How do you copy and paste lines in vi?
Answer
Copying lines into a buffer
  1. Press the ESC key to be sure you are in vi Command mode.
  2. Place the cursor on the line you wish to copy.
  3. Type yy to copy the line.
  4. Move the cursor to the place you wish to insert the copied line.
6 сент. 2019 г.
 

Tìm kiếm

Back
Top