Read this whole guide offline with no ads, for a very low price!
Click Here!

Custom Search







Table Of Contents  CertiGuide to A+ (A+ 4 Real)
 9  Chapter 5: The Linux Operating System
      9  Basic Concepts and Procedures for Creating, Viewing and Editing Files and Directories
           9  Common Commands

Previous Topic/Section
jobs - List Jobs that are Running from the Current Shell
Previous Page
Pages in Current Topic/Section
123
4
Next Page
Meta Characters
Next Topic/Section

vi - A Full Screen Text Editor
(Page 4 of 4)

Deleting, Saving and Quitting in Command Mode



When in command mode, text under the cursor can be deleted using the x key or replaced by typing r followed by the new character. There are several delete commands in vi. Text can be deleted in several ways and (remember by entering a a number before the command this command will be repeated that number of times). For example the command:

5dw

Will delete the next five words. Each of the delete commands works in a similar fashion.

vi has several modes. The command to save the file and exit is ZZ. This typing this will save your edits and exit. Additionally within the command mode typing:

:wq

will also save and exit. One can exit vi without saving changes it is accomplished by typing:

:q!

while in the command mode.

This cconcludes a very short discussion of vi editor. Reading the man pages, the info pages and practicing is one of the most effective ways of becoming comfortable with vi. It will be well worth your efforts. Additionally most Linux distrbutions has a program, vimtutor, which gives a good basic tutorial on the use of vi.


Previous Topic/Section
jobs - List Jobs that are Running from the Current Shell
Previous Page
Pages in Current Topic/Section
123
4
Next Page
Meta Characters
Next Topic/Section

If you find CertiGuide.com useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider buying an inexpensive PDF equivalent of the CertiGuide to A+ (A+ 4 Real) from StudyExam4Less.com. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005

Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.