Milestone 5: Neovim
For this milestone, you will install and configure the Neovim editor, which offers quite a few features in comparison to BusyBox vi.
Milestone Worksheet
Please download the following worksheet for Milestone 5. To be sure your browser downloads the file instead of trying to open it, right-click the following link and choose “Save As,” “Save Link As,” or similar language from the menu. (Each browser is a little different in what wording it uses.)
Background
Please read the following background lesson:
As you complete the reading, fill in the top part of the Milestone Worksheet. Note that you will need to return to these instructions in order to get the commands needed for the steps in this milestone like you did in the previous milestone.
Procedure
Step 1: Boot the Pi and Run Updates
By now, you should be comfortable booting the Pi and logging is as your regular user. Verify that your network connected by running:
ip a s
Run updates using:
doas apk update
doas apk upgrade
Watch the output to see if the linux-tealpi5 package gets updated. If there is an update to this package, then you need to reboot the Pi to switch onto the newer version of the kernel.
Step 2: Install Neovim
As your regular user, follow the instructions from the background section to install the Neovim editor and its related packages.
Step 3: Configure Neovim
As your regular user, configure Neovim according to the instructions given in the background section. You need to perform the Basic Configuration and Saving as Root steps. You may choose to perform further customization as your discretion.
Submission Guidelines
To prepare your submission photo for this assignment, run the following command as your regular user:
nvim $HOME/.config/nvim/init.lua
Scroll to the bottom of the file if it is too tall to fit entirely on the screen.
Check Your Work
Verify the following:
- Your init.lua file contains the basic configuration directives from the instructions.
- At the bottom of the file, a Lua require statement loads the save_as_root module that you created.
Prepare Your Submission
Use your phone to take a photo of your screen, since you don’t yet have a screenshot tool available on the Pi. Transfer the photo to your computer, and replace the placeholder image in the Milestone Worksheet with your photo. Export the worksheet to PDF format, and upload the PDF to Moodle as the submission for the Milestone 5 assignment activity.
As a reminder, here are the instructions for editing the worksheet in either LibreOffice or Word Online:
Turn Off the Pi
To turn off the Raspberry Pi as your regular user, run:
doas poweroff
ABET Assessment
Successful completion of this assignment satisfies the following performance indicator:
- 2.4. Compare multiple solutions against requirements.