How do I delete all lines above VI?

Mỹ An

New member
How do I delete all lines above VI?
Answer
Delete All Lines
  1. Delete All Lines.
  2. First, press Esc . Then, delete everything within the file by typing: :%d. …
  3. Move the cursor to the first line you want to remove. …
  4. Vim allows you to delete lines that match a specified pattern. …
  5. Firstly use Esc to move to normal mode. …
  6. Navigate to command mode with Esc .
22 апр. 2020 г.
 

Tìm kiếm

Back
Top