Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
24 views1 page

Unix Fundamentals Chapter 03 Exercises

The document outlines a workshop exercise for using the vi text editor, specifically through a script named vilearn.sh located in the user's bin directory. It introduces various tutorials focused on basic editing, efficient movement, and other vi techniques, emphasizing the importance of practice for comfort with the tool. Participants are instructed to navigate the tutorials and complete exercises to enhance their skills in vi editing.

Uploaded by

gauravsom789
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

Unix Fundamentals Chapter 03 Exercises

The document outlines a workshop exercise for using the vi text editor, specifically through a script named vilearn.sh located in the user's bin directory. It introduces various tutorials focused on basic editing, efficient movement, and other vi techniques, emphasizing the importance of practice for comfort with the tool. Participants are instructed to navigate the tutorials and complete exercises to enhance their skills in vi editing.

Uploaded by

gauravsom789
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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.
………..

You might also like