![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| 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 12:19 AM |
| Unix basic commands | Peter Spellman | UNIX for Dummies Questions & Answers | 3 | 08-10-2001 04:41 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
|||
|
Perhaps this will help: http://www.eng.hawaii.edu/Tutor/vi.html
|
|
||||
|
Or see this Cheat Sheet on vi.
|
|
|||
|
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 |
|
|||
|
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 |
|||
| Google UNIX.COM |