LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dwi? (https://www.linuxquestions.org/questions/linux-newbie-8/dwi-4175579815/)

babysteps123 05-14-2016 10:27 PM

dwi?
 
What is the vi command to change one word where the cursor is positioned (this command will delete the word, and then place you in Insert mode)?

I think the answer is dw & to go back to Insert mode hit i but while researching man vi & vi tutor.vi there was nothing that I could find:study: that showed "ONE" command that could delete the word & make it go right back to Insert mode. dwi wasnt a single command that I could find, please educate me as I am far from an expert and still taking babysteps to learn linux.

frankbell 05-14-2016 10:38 PM

Code:

cw  <----change word
(Grin) I think you need a cheat sheet. My favorite vi cheat sheet is, of course, the Mug of Vi. I got one once as a door prize and, when the handle broke off, I actually paid (gasp!) for one.

Hacker Public Radio has a very nice series on vi and vim.

babysteps123 05-14-2016 10:40 PM

Quote:

Originally Posted by frankbell (Post 5545655)
Code:

cw  <----change word
(Grin) I think you need a cheat sheet. My favorite vi cheat sheet is, of course, the Mug of Vi.

Hacker Public Radio has a very nice series on vi and vim.

lol I think you're right I do need a cheat sheet...Thank you for this:)


All times are GMT -5. The time now is 07:39 PM.