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

1 Answer

+1 vote
by (353k points)
selected by
Best answer
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