vim select all and delete
Press "esc" button;
Type: ggdG
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
vim delete from delimeter to end of line for all lines
# Basic syntax:
:%norm $T<delimiter>D
# Where:
# - % indicates that the command should be applied on all lines
# - norm indicates that the command is to be run in normal mode
# - $T - not sure - probably something like "to end of line"
# - D indicates delete
vim select lines and delete
# Press v and you are in visual mode
# Select the lines
# Press x
delete all lines in vi
#in command mode
gg #takes you to the first line
dG #deletes all
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us