LinuxQuestions.org
Help answer threads with 0 replies.
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, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,367
Blog Entries: 16

Rep: Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147Reputation: 3147
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration