05. Deleting text in Vim x, X, d, . (period)

So far we've covered, inserting and replacing. Now let's hop on over to the deleting! *** Remember to hit "u" to undo a change! *** There are many ways we can delete text in a file. x - delete the character at the cursor 3x deletes current character + 2 characters to the right of cursor X - delete character to the left 3x deletes 3 characters to the left of cursor Try dexletxing axxll txxxxhe "x" chxaraxcters hxere! We can also delete words or WORDs at a time. d - delete something dW deletes to beginning of next WORD dE deletes to end of next WORD dB deletes to beginning of previous WORD Let's try deleting all the words here. Another nifty tool: . - repeat any command I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! I love Justin Bieber! Review Problems: 1) What's the difference between word and WORD? How many words and WORDs does www.youtube.com have? 2) How do you activate REPLACE mode? Solutions: 1) WORDs ignore punctuations. www.youtube.com has 5 words and 1 WORD. 2) "R"

Take your Linux skills to the next level!

System Admin Handbook

Take your Linux skills to the next level! Try Linux & UNIX

This book approaches system administration in a practical way and is an invaluable reference for both new administrators and experienced professionals. It details best practices for every facet of system administration, including storage management, network design and administration, email, web hosting, scripting, and much more.

$ Check price
74.9974.99Amazon 4.5 logo(142+ reviews)

More Linux & UNIX resources

Aching back from coding all day?

Inversion Therapy Table

Aching back from coding all day? Try Back Problems

Stretch out your back and relieve your back muscles with inversion therapy. This device counteracts the forces of gravity on the body by decompressing and elongating the spine. By using this product just ten minutes a day, you can be well on your way to improved circulation and posture while relieving muscle aches, back pain and stress.

$$ Check price
119.98119.98Amazon 4.5 logo(1,700+ reviews)

More Back Problems resources

Ad