Vim

10 Aug 2022

I’ve been working through the Missing Semester lectures from MIT, and recently completed the lecture about the Vim editor . Vim is a test editor, called from the command line, and optimised for programming - in the sense that it assumes most of the use of the editor is navigating around a big text file making small changes rather than entering large amount of test.

It uses simple, short key presses (as opposed to mouse movements or using menus or toolbars) to achieve things. This makes it highly efficient for good typists who know all the commands, and slightly incomprehensible to those who do not. An additional level of complexity is the idea of modes. Vim has several modes, the main ones being:

Apart from this lecture here are many good guides for learning VIM, a couple I’ve looked at are this one from OpenSource.com and this one from Stanford .

Even though I will never invest the time to become a power user of Vim, it’s available most places you’ll be using the command line, so the basics are a requirement for any programmer. Plus if you’re ever hired by a film production company to advise on a computer hacking scene, you’ll need it to scroll though some syntax highlighted Javascript.

Great cheat sheet from https://www.vimcheatsheet.com/