LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-14-2016, 10:27 PM   #1
babysteps123
LQ Newbie
 
Registered: May 2016
Posts: 10

Rep: Reputation: Disabled
Question 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 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.

Last edited by babysteps123; 05-14-2016 at 10:30 PM.
 
Old 05-14-2016, 10:38 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,351
Blog Entries: 28

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147
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.

Last edited by frankbell; 05-14-2016 at 10:42 PM.
 
1 members found this post helpful.
Old 05-14-2016, 10:40 PM   #3
babysteps123
LQ Newbie
 
Registered: May 2016
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration