vim 9 and neovim 0.9.5 under ubuntu 23.10 raspberry pi

VIM 9 running on Ubuntu 23.10 Raspberry Pi

This is the lightest of lightweight comparison of Vim 9 and Neovim stable release 0.9.5 running under Ubuntu 23.10 on a Raspberry Pi 5.

Vim 9 is the regular package installation bundled with Ubuntu 23.10, while Neovim was built from source. Neovim was built from source because the latest neovim version available was 0.7.2 (via apt show neovim); if you’ve been following Neovim then you will know how much has changed since stable release 0.8, so that makes 0.7.2 pretty much a non-starter.

Vim 9 is running with the Afterglow color scheme and PowerLine for the status line layout at the bottom. I’ve written about this already. The code common to both examples is a simple command-line utility I wrote in Rust, which is also installed on this Raspberry Pi. I’ve been a vi user since at least the early days when I was exposed to BSD Unix via DEC Ultrix running on a MicroVAX, back around 1985. Once exposed I stuck with it because anything else back then for editing source code was horrific to use by comparison. Of course there was no coloration back then. If you wanted color you either used a white, green, or orange monitor. Your choice.

I should note that VIM 9.1 was released on 2 January 2024, but the way distributions are managed you won’t see it in the regular distributions unless you, the user, take extraordinary actions, such as using an alternative repo, use Flatpack or Appimage, or build from source. Because the Raspberry Pi 5 is ARM based, there is no Flatpack or Appimage except for x86_64. As for Snaps, well, nothing there for this platform, and if there were I wouldn’t touch it. Vim 9 is sufficiently stable that it’s good enough as is.

I found the color scheme Afterglow to be easy on the eyes and quite helpful reading and writing source code. Where-ever I use Vim, I have Afterglow installed side-by-side.

neovim 0.9.5 running on Ubuntu 23.10 Raspberry Pi

I built Neovim because I wanted to give it a try on the Raspberry Pi. There are instructions to install from source on the Neovim website. They’re quite clear and it took very little time to build my copy and install it for use.  To make it easier on me I executed the following:

make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_INSTALL_PREFIX=/home/pi/tools/neovim-0.9.5/

There are instructions in the Neovim documentation that illustrate almost the same command sequence. I’ve reached a point where I have a ~/tools folder in my home folder to install whatever, so that I don’t have to use sudo to make it all available. Yes, I have to add a bit extra to my $PATH, but the little extra effort makes my regular environment much cleaner as a consequence, especially if I want to clean it all out later.

After building and installing my local neovim binary, I installed the AstroNvim Neovim configuration. And one other piece to install: I had to download and fully install all the Hack Nerd fonts from GitHub (see link below). I downloaded Hack.zip, unzipped everything, then copied all the Hack font files into ~/.local/share/font, logged out and then back in again to pick up all the fonts. If you don’t download the full set then you wind up with oddball square glyphs instead of the special characters that Neovim and AstroNvim use.

Then I started nvim and got to work.

I particularly like the way that Neovim plus AstroNvim works, creating a quite powerful IDE-like environment. In the example above I’ve used the predefined key sequence [SPACE] e to open a file view column to the left. I can use either the arrow keys plus the space bar to select any item, or I can click with the mouse. It can handle multiple open and tabbed files to the right, and it still has the complete vi key sequence to work with.

I believe that regular Vim, especially versions 9 and later, is a perfectly decent vi clone. But given the choice between vim and neovim, I’ve started to install and use neovim over vim.

Links

Vim Homehttps://www.vim.org/

Vim Afterglow color schemehttps://vimcolorschemes.com/danilo-augusto/vim-afterglow/

Neovim Homehttps://neovim.io/

AstroNvimhttps://github.com/AstroNvim/AstroNvim

Nerd Fonts (just download Hack.zip)https://github.com/ryanoasis/nerd-fonts/releases

more backup adventures, this time with my macbook pro m1 max

Seagate Backup Plus Hub Drive 6T

Once upon a time, say back around 2016 or so, I purchased a monstrous (for the time) 6 TiB drive called the Seagate Backup Plus Hub Drive. I don’t recall how much I spent, but I’m pretty sure I purchased it from my local Costco, a brand they sold for many years until recently. I’m sure it was on sale at the time, being the cheap person I am. I used it for a few years, at least up until 2019, when I stopped using it and put it away in one of my cabinets. I can’t recall why I stopped using it, but it sat unused for about the next five years until today.

In the last post I wrote about backing up my iPhone 11. That’s all well and good, but until today I didn’t have a backup drive for this newest MacBook Pro. I’d tried to purchase another 5 TiB Seagate Backup Plus Portable from Costco, but the warehouse no longer carries them. When they did I could purchase them for $99, which isn’t bad at all. I have four of them already, for each of my various Macs. Looking online at both Amazon and Walmart, I can purchase a new one for about $160. When I saw the cost of those my memory was jogged a bit and I went and pulled out this now-old Seagate Backup.

macOS Disk Utility attempting to format Seagate Backup Plus Drive

The first thing I did was plug it into my MacBook, and sure enough it mounted and I was able to at least read the drive contents. The drive had come preformated as NTFS, because at the time I was still using my 17.2″ Samsung notebook computer and that backup drive’s primary use was meant for Windows 10 Pro. I used it for that purpose a number of times, but around late 2019 I began a hard switch to Linux and, of course, macOS. That switch is the reason why I pulled the Windows 10 SSD out of the Samsung and put in a fresh blank SSD, and then installed Linux Mint on it. Except for a Parallels VM with Windows 11 installed, I don’t run Windows on any of my personal systems any more.

Once the Seagate was plugged in and mounted, I attempted to reformat the drive as APFS with case sensitivity. Long story short, that’s the file system you should format on any drive meant for any contemporary Mac. I’ve read enough older junk on the web saying Apple created this so it would run efficiently on an SSD, and that may have been true to start with, but any version of macOS that came after 2014 used this, so I might as well get with the program.

The only problem was I decided to select the option where the entire drive would be scrubbed with binary zeroes, with a total of seven passes. I chose poorly. After waiting nearly four hours, the first pass had barely started. I killed the Disk Utility process, then proceeded to reboot my Mac because the act of killing Disk Utility made working with the Seagate null and void. Once the Mac was rebooted, I restarted the Disk Utility and allowed it to sanely format the drive, which it promptly performed in less than a minute.

So now the Seagate’s attached and Time Machine has performed it’s first full backup of this Mac; about 140 GiB in about 20 minutes. That Mac backup includes my iPhone backup to the Mac, so now I’m (I hope, fingers crossed) doubly backed up.

By the way, the name of the backup drive is named BACKUP6T (for terabyte). I don’t expect anything terrible to happen with this older backup drive. You can still purchase them with capacities up to 14 TiB. I also need to read one more time what the two USB A ports are used for. According to the flashy documentation I can use those front ports to backup “your files, precious photos and videos while connecting to and recharging your tablet, smartphone or camera.” I can certainly appreciate backing up my iPhone, but since I’ve never done that kind of backup before it will be another adventure!

Links

Seagate Backup Plus Hub Drivehttps://www.seagate.com/products/external-hard-drives/backup-plus-hub/