The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Why do basic unix commands not work in BASH PixelLover UNIX for Dummies Questions & Answers 10 05-23-2006 12:10 PM
Basic Unix Commands for cygwin sanjay.karthik Windows & DOS: Issues & Discussions 0 07-25-2005 06:38 AM
Need help in sftp basic commands livetaurean19 Shell Programming and Scripting 2 06-15-2005 05:41 AM
basic commands documentation kdgorton UNIX for Dummies Questions & Answers 1 02-20-2005 01:19 AM
Unix basic commands Peter Spellman UNIX for Dummies Questions & Answers 3 08-10-2001 04:41 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-19-2006
Registered User
 

Join Date: Sep 2006
Posts: 51
Vi editor basic commands

I would be thankful if anyone could show me commands to do the following tasks in vi:
Code:
1) How can I undo or redo my last action in vi editor.
2) How can I copy only a word or a portion of line (not the whole line) in vi, like
   we can select text and press ctrl+c in notepad to copy any text.
3) Suppose, I have 10 lines in a shell script, I want to comment out those lines
   i.e. I want to insert a "#" at the begining of more than one lines, how can I do that?
4) How can I join two lines to make them one, like we can press DELETE key at the
   end of first line to bring 2nd line up and make both lines a single line.
Thanks in advance for any replies.
Reply With Quote
Forum Sponsor
  #2  
Old 10-19-2006
Registered User
 

Join Date: Nov 2001
Location: Flint, MI
Posts: 186
Perhaps this will help: http://www.eng.hawaii.edu/Tutor/vi.html
Reply With Quote
  #3  
Old 10-19-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Or see this Cheat Sheet on vi.
Reply With Quote
  #4  
Old 10-19-2006
Registered User
 

Join Date: Oct 2006
Location: NewYork
Posts: 21
This is one of the good site where you can all the commands in vi.
I recommend you to go through once with all the commands. Later on
when you are working, you will realize the importance of each.

http://www.lagmonster.org/docs/vi2.html
Reply With Quote
  #5  
Old 10-19-2006
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
I have a vi reference coffee mug I picked up several years ago when I need to look at crib notes in class

http://www.cafepress.com/geekcheat.11507711

Carl
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0