Due: Tue. 02/03 at 11:59PM

Overview

In this exercise, you will complete vimtutor, a structured introduction to the features and usage of vim and its derivative nvim. You will repeat exercises similar to this throughout the course of the semester. Over the course of the semester, the exercises will gradually introduce more and more vim features. Additionally, you will edit one small program with nvim.

Submitting the exercise

For the first couple weeks, you will submit your completed exercises to a GitHub Enterprise repo. You can find your repo and clone it from the CS14 Org.

Clone you repository and either perform the exercise there, or put the modified files and asciinema recording there once you are done.

Receiving your exercise

Do not run vimtutor. The vimtutor program won’t allow you to save your changes. Instead, I have made a copy of the contents of vimtutor that you can edit and save.

You can copy the exercises from the following directory:

/home/ckazer/public/cs14/exercises/vim/vim_exercises_01

Use cp -r to copy a directory recusively, meaning it will copy a directory and all of its contents. E.g.,

$ cp -r <source_directory> <destination>

Rather than copy-pasting the directory, try typing it out using tab completion!

Using asciinema

For this exercise, you must submit one or more asciinema recordings of you completing the exercise, as evidence of completing the assignment from the command line.

You can start an asciinema recording called naviagtion.cast as follows:

$ asciinema rec vim_exercise.cast

Use Ctrl+d or enter the command exit to stop recording. If you record your work in multiple sessions, give each recording a different name. E.g, vim_exercise_pt1.cast, vim_exercise_pt2.cast, vim_exercise_pt3.cast.

Warning
asciinema essentially functions as a "keystroke logger". You should not enter any sensitive information, like passwords or other personal data, while using it.

Completing the exercise

Open vimtutor_writable with nvim and complete sections 1-4 as well as 6. You may skip sections 5 and 7.

Open typo_filled.py with nvim and follow the instructions in the comments to correct the program.

Once you are done, add, commit, and push your modified files and asciinema recording(s) to github.