Ngô Thảo Trúc
Member
What is the command to delete and cut the current line in vi?
Answer
Cutting (Deleting)
Move the cursor to the desired position and press the d key, followed by the movement command. Here are some helpful deleting commands:
dd – Delete (cut) the current line, including the newline character.
Answer
Cutting (Deleting)
Move the cursor to the desired position and press the d key, followed by the movement command. Here are some helpful deleting commands:
dd – Delete (cut) the current line, including the newline character.