COMP 1671 : Introduction to Computer Science
Lab 8 : The gvim editor
Motivation :
The editor is a powerful tool that can ease a lot of work you need to do
while programming and other editing tasks.
Learning the features that an editor provides and using them can save
you a lot of time.
If you want more motivation, please read the 'Why Vi?' section at the
following website:
Vi
tutorial - written by Walter Alan Zintz.
Note : gvim is an enhanced version of the vi editor. (vi is pronunced
vee-eye).
By now you are familiar with the basic way of using the gvim editor.
Now we shall learn slightly more advanced features of gvim.
Lab Activity :
In Cygwin do the following. Create a directory called gvimfiles. Change
to that directory. Now copy the file
/vim/vim61/tutor/tutor to you current directory with the following
command.
cp /vim/vim61/tutor/tutor .
Unalias gvim using the command
unalias gvim
Now open the file in the gvim editor using the command
gvim tutor &
This file contains a short introduction and tutorial on gvim. Please
complete the tutorial. In case you have time left, you can then work on
your project due on Friday.
A quick reference on vi (and gvim) can be found here