vi delete all content

In the command mode, enter:., $ D then Enter

Means to delete all from the current line to the last line

Represented by gg move to the first line

In the command mode, enter:., $ D then Enter

Means to delete all from the current line to the last line

Represented by gg move to the first line

Guess you like

Origin www.cnblogs.com/aididiao/p/12024813.html