+2 votes
in General by (15.3k points)
I am new to VI editor and trying to learn shortcuts. Is these shortcut to delete a line in VI editor?

1 Answer

0 votes
by (27.1k points)
You can do by pressing 'd' twice quickly. Take the cursor to the line you want to delete and then type 'dd'. It will delete that line. If you are in insert mode, press ESC to come out of insert mode. Then only 'dd' will work.
i have some confusions regarding this

Related questions