CS1101: Laboratory 1

A vi Tutorial

Academic Year 2006-2007

Lecturer: Dr. Barry O'Sullivan
Department of Computer Science
University College Cork

b.osullivan@cs.ucc.ie


Objective of this Lab

To familiarise students with the vi editor.


Background: The Tutorial

The vi tutorial we will use in this lab is based on The Vi Tutorial (vitutor2.1.shar) developed by Bob Ware (bware@mines.colorado.edu). The tutorial itself comprises a text file which you edit using the vi editor. As you progress through the file, the more you learn about the vi editor.

To get a copy of the vi tutorial click on the this link and save the tutorial in a location where you can edit it, e.g. your home-directory or a sub-directory of your home-directory. You are now ready to start the task for this lab session.


Tasks

  1. Open the vi tutorial using the vi editor. To do this simply type vi tutor.vi at the command prompt
  2. Follow the instructions in the file, completing the various tasks asked of you. Note that rather than using the keys h,j,k and l for navigating the file, as mentioned in the tutorial, you can use the arrow keys;
  3. You should complete Lessons 1-4 in the tutorial at a minimum;
  4. You must complete this lab during the two hours allocated to you for CS1101 labs this week.
  5. There is nothing to submit this week, but you must sign in as usual.

b.osullivan@cs.ucc.ie

Return to the CS1101 Home Page