Question : vim select all and delete
Answered by : enrico-cabri
Press "esc" button;
Type: ggdG
Source : | Last Update : Mon, 22 Jun 20
Question : vim delete all lines
Answered by : tiago-mendes
:1,$d
Source : | Last Update : Sat, 03 Apr 21
Question : vim delete every other line
Answered by : cloudy-civet-73evli1nq9lm
:1d|g/^/+d # Every other odd line
Source : https://stackoverflow.com/questions/1946738/how-to-delete-every-other-line-in-vim | Last Update : Fri, 04 Feb 22
Question : vim delete every other line
Answered by : cloudy-civet-73evli1nq9lm
:g/^/+d # Every other even line
Source : https://stackoverflow.com/questions/1946738/how-to-delete-every-other-line-in-vim | Last Update : Fri, 04 Feb 22
Question : vim select lines and delete
Answered by : ricardo-hincapie
# Press v and you are in visual mode
# Select the lines
# Press x
Source : | Last Update : Wed, 07 Apr 21