Skip to content

Instantly share code, notes, and snippets.

@kcjpop
Created November 4, 2013 23:11
Show Gist options
  • Save kcjpop/7310923 to your computer and use it in GitHub Desktop.
Save kcjpop/7310923 to your computer and use it in GitHub Desktop.
[vim] Delete all lines in a file
-- Move to the beginning of file
gg
-- Delete everything
dG
@kcjpop
Copy link
Author

kcjpop commented Dec 6, 2013

Better and faster I suppose
:%d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment