UNIX Fundamentals Workshop 77
______________________________________________________________________________
Exercises: The vilearn Tutorial
In your $HOME/unix_intro/bin directory, you will find a script named vilearn.sh.
When you execute this script, it will take you through a series of vi tutorials that will help you get
started using vi. We will not be able to spend enough time in class to give you warm fuzzies with
using vi – that level of comfort can only be gained by using it for a few weeks. However, we will
need to get through at least the first two tutorials.
prompt> cd $HOME/unix_intro/bin
prompt7> ./vilearn.sh
The following tutorials are available:
-n Tutorial 1 -- Basic Editing
-n Tutorial 2 -- Moving Efficiently
-n Tutorial 3 -- Cutting and Pasting
-n Tutorial 4 -- Inserting Techniques
-n Tutorial 5 -- Tricks and Timesavers
You will be editing your own copy of the tutorial. Enter the number
-n of the tutorial you'd like to see (or q to quit):
1
Copying tutorial……
vi tutorial #1: The Basics
This lesson lasts 10-15 minutes and teaches simple editing. Lines
which begin with >>> mark exercises you should try. When you
want to exit this tutorial type ZZ (type capital Z, twice).
When you type commands in vi they do not appear on the screen. If the
letters you type unexpectedly appear on the screen, press the ESCAPE key.
BASIC CURSOR MOVEMENT
---------------------
To move through the tutorial use ^D (control d) and ^U (control u).
^D Move DOWN one half-screen
(depress the control key and type d)
^U Move UP one half-screen
(depress the control key and type u)
>>> Now type ^D (control d) and ^U (control u) to move down and back up.
………..