CSCI 1120 (Low-Level Computing), Fall 2015:
Homework 1
- Credit:
- 5 points.
(None.)
(For this assignment, you won't actually be programming,
but you will be doing something on a computer, and submitting
your answers in the way you'll submit your programs in later
assignments.)
Do the following problems.
You will end up with at least one text file per problem.
Submit these files by sending mail to bmassing@cs.trinity.edu,
with each file as an attachment.
Please use a subject line that mentions the course number and
the assignment (e.g., ``csci 1120 homework 1'').
- (5 points)
(Not really a programming problem, but one that requires you
to use a computer.)
For this problem your mission is to learn a little more about
traditional UNIX text editors vi and/or emacs.
Do one or both of the following
(full credit for doing one, extra credit if you do both).
(Note that I assign this problem in several of my
courses, so if you have already done it for another course,
please go beyond what you did for the other course.)
- Do something to improve your ability to use vi
(or, more properly, vim, since that's what we
have installed). Options include:
- Start the interactive tutorial by opening a terminal
window and typing vimtutor. Work through at least
the first lesson, more if you have time.
- Think about your past use of vi and identify
something you find particularly annoying (e.g.,
not knowing how to cut and paste). Then try to find
a way to reduce the annoyance. You may find something
helpful in the tutorial, or in the online help (which
you start from within vi by typing :help
and pressing the Enter key), or you may prefer to use
your favorite search engine.
Use what you've learned to write, in a text file,
a paragraph or two reporting
on what you learned and what you still wish you knew about this
editor.
- Learn something about emacs. If you've never used it,
start it by typing emacs -nw in a terminal window.
This should give you a page of instructions. Press control-h
and then t to start an interactive tutorial. Work through
as much of this tutorial as you need to in order to create
and save a text file. (Starting the program by just typing
emacs starts a graphical version of the program,
which you may prefer for use in our labs, but which isn't
as useful if you're working remotely.) If you already know
something about emacs, either work through some of the
tutorial, or do the second option for vi above
(identify an annoyance and try to figure out a way to reduce it),
but for emacs.
Use what you've learned to write, in a text file,
a paragraph or two reporting
on what you learned and what you still wish you knew about this
editor.
Turn in the resulting text file(s).
Berna Massingill
2015-09-02