Delete line in vi
What should i do when i delete a line in vi?
It's what i'm doing right now
- Open up the terminal alt + ctrl + t
 vi a.txt- I move my cursor to the line which I wan to delete, then what key-combination is should use to delete line in vi editor ?
 
Best Answer
Pressing dd  will remove that line (actually it will cut it). So you can paste it via p .