vim delete text code example
Example 1: vim shortcut for delete
d
dd // deletes a line
Example 2: vim delete to beginning of file
# Basic syntax:
dgg
Example 3: vim delete line
# Basic syntax:
dd
# Note, add a number in from of dd to delete that many lines, e.g.:
5dd # Delete the next 5 lines