How do I delete multiple lines in vi?

Đức Linh

New member
How do I delete multiple lines in vi?
Answer
Deleting Multiple Lines
  1. Press the Esc key to go to normal mode.
  2. Place the cursor on the first line you want to delete.
  3. Type 5dd and hit Enter to delete the next five lines.
 

Tìm kiếm

Back
Top