Created
March 31, 2015 06:08
-
-
Save randika/d1e800cc3dc5da6ead3b to your computer and use it in GitHub Desktop.
How to delete all lines of file in Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Problem | |
To delete all the lines of a file that is open in Vim. | |
Solution | |
Type `gg` to move the cursor to the first line of the file, if it is not already there. | |
Type `dG` to delete all the lines. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment