x - delete current character
10x
dw - delete current word
dd - delete current line
5dd - delete five lines
d$ - delete to end of line
d0 - delete to beginning of line
:1,.d
delete to beginning of file
:.,$d
delete to end of file
If all lines in the file are to be deleted, this vi command specifies the range of deletion:
:1,$d
Read full article from vi/vim delete commands and examples | vi vim delete lines to end | alvinalexander.com
10x
dw - delete current word
dd - delete current line
5dd - delete five lines
d$ - delete to end of line
d0 - delete to beginning of line
:1,.d
delete to beginning of file
:.,$d
delete to end of file
If all lines in the file are to be deleted, this vi command specifies the range of deletion:
:1,$d
Read full article from vi/vim delete commands and examples | vi vim delete lines to end | alvinalexander.com
No comments:
Post a Comment