what is the command to delete and cut the current line in vi
In vi/vim, the command to delete and cut the current line is:
vim
dd
This:
- Deletes the entire current line (including the newline).
- Places it into the default cut buffer, so you can paste it later with
porP.