Search:  

 
 
   ««DSL HurdlesShare Tool






how-to block ads



Search for: in all FAQs

What is vi? (#8600)

vi is an editor, text editor like Emacs or CDE

* to start vi you type in vi in the command line
* to add lines in vi hit i with nothing after it, this will enter you into entering mode
* to save a file after you done typing hit to enter command mode then hit :w filename
* then to quit vi enter a :q!
* to load a file from vi enter :e filename
* examples:::

if you wanted to edit the message of the day you would enter this command

vi /etc/motd
from the root or username command line

* to navigate in vi here are some key keys
in command mode, if you are not sure if you are in command mode hit the key a couple times.

* j = moves one line down
* k = moves one line up
* h = moves cursor one character left
* l = moves cursor one character right
* Control+F foward one page
* Control+B backwards one page

* x deletes chacter the curson is on
* dd deletes the line the curson is on

There are alot more advanced commands but these are the basic ones.

feedback form

by MystBlade See Profile edited by Zuhaib See Profile
last modified: 2003-12-16 14:16:44



Wednesday, 25-Nov 21:03:28 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.