Electric Type

Multimedia

About Us

News

Help

Introduction to vi

Page 2 — Getting Started

Once you're in a Unix shell, opening a file in vi is as easy as typing the command vi and the name of the file. Let's say I want to open up the file commands.html, which is a list in HTML of vi commands. The file lives in my home directory (which is monkey:/usr/diva/), where I do all my Unix experimenting. After making sure I was in that directory, I'd type the following:

monkey:/usr/diva/> vi commands.html

and the file would be opened.

This is what I would see on the screen:


<HTML>

<HEAD><TITLE>vi is fun!</TITLE>

</HEAD>



<BODY bgcolor="#FFFFFF" text="#0000CC" link="#CC0000" vlink="#000000">

This is a list of the crucial keys in vi. 

Remember: the escape key is your friend.

O means to go into insert tect mode one character to the right

r means to replace something

x means to delete something

x means to delete something

E means to revert to the last saved version

I means to insert text. This is what we use to begin typing

these four keys are used in edit mode: h j k l

w means to overwrite the last version

q means to quit without changing anything

</BODY>

</HTML>



"commands.html" 18 lines, 295 characters

next page»


Dynamic HTML  

Frames  

HTML Basics  

Stylesheets  

Tables  

XML  

Javascript  

Database Connections  

Intro To Perl  

HTML 4.0  

User Blogs

Screen Shots

Latest Updates

Contact Us

Valid HTML 4.01!
Valid CSS!

Breadcrumb

© ElectricType
Maintained by My-Hosts.com
Site map | Copyright | Disclaimer
Privacy policy | Acceptable Use Policy
Legal information.