{"id":3407,"date":"2010-09-02T00:00:00","date_gmt":"2010-09-01T22:00:00","guid":{"rendered":"http:\/\/www.theill.com\/blog\/2010\/09\/02\/using-vi-for-your-simple-day-to-day-editing-needs\/"},"modified":"2010-09-02T00:00:00","modified_gmt":"2010-09-01T22:00:00","slug":"using-vi-for-your-simple-day-to-day-editing-needs","status":"publish","type":"post","link":"https:\/\/www.theill.com\/blog\/2010\/09\/02\/using-vi-for-your-simple-day-to-day-editing-needs\/","title":{"rendered":"Using vi for your simple, day-to-day editing needs"},"content":{"rendered":"
My favorite editor isn’t I have used it for decades and still, I only know these commands. I really don’t need to learn any others, contrary what some of my friends tell me.<\/p>\n {number}G = goto line That’s it .. you might want to check out variants of these commands e.g. “5dd” to delete five lines, “4yy” to copy four lines.<\/p>\n If you need a list of all commands, look up the index help page in the vim (you are probably using My favorite editor isn’t vi, but I’m still using it at least a couple of times each day. It’s a short two character command, it’s always available and it starts fast. I have used it for decades and still, I only know these commands. I really don’t need to learn any others, contrary what some … Continue reading Using vi for your simple, day-to-day editing needs<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"amp_status":"","spay_email":"","jetpack_publicize_message":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"yoast_head":"\nvi<\/code>, but I’m still using it at least a couple of times each day. It’s a short two character command, it’s always available and it starts fast.<\/p>\n
Need to know<\/h3>\n
\n
\nESC = go out of current mode
\nx = delete character
\nwq! = save file and quit (when in command mode)
\nq! = quit (when in command mode)<\/dd>\n<\/dl>\nGood to know<\/h3>\n
\nyy = copy line
\ndd = delete line
\np = paste line below
\nP = paste line above
\nr = replace character
\nA = go into “insert” mode and append to end-of-line
\n\/ = go into “search” mode<\/p>\nvim<\/code> and not
vi<\/code>) documentation using:<\/p>\n