Thanh Thảo
New member
How do I copy a range of lines in Vim?
Answer
The original lines will remain in the file.
Answer
The original lines will remain in the file.
- Open a terminal window to access a command prompt.
- Type the command “vim filename” to open the file that you want to edit. …
- Press the “Esc” key to enter command mode.
- Navigate to the first line in the series that you want to copy.
- Type “5yy” or “5Y” to copy five lines.