Sorry, few corrections: If you’ve just typed a long string of commands that you don’t need to enter anymore, delete the entire line by using: CTRL+U.
If you’re in a hurry, you can save and quit the file you’re editing in vi/vim by exiting insert mode(Esc), holding shift, and hitting z twice. -- l...@iitd - http://tinyurl.com/ycueutm
