Answers for "vim select lines and delete"

10

vim select all and delete

Press "esc" button;
Type: ggdG
Posted by: Guest on June-15-2020
22

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
Posted by: Guest on October-10-2020
5

vim delete all lines

:1,$d
Posted by: Guest on March-27-2021
1

vim select lines and delete

# Press v and you are in visual mode
# Select the lines
# Press x
Posted by: Guest on March-31-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language