How do I delete all lines above VI?
Answer
Delete All Lines
Answer
Delete All Lines
- Delete All Lines.
- First, press Esc . Then, delete everything within the file by typing: :%d. …
- Move the cursor to the first line you want to remove. …
- Vim allows you to delete lines that match a specified pattern. …
- Firstly use Esc to move to normal mode. …
- Navigate to command mode with Esc .