Skip to content
Astrohacker

← Projects

Archived project · Terminal editor

RedVim

A terminal editor based on Red.

RedVim explored how a small terminal editor could combine Vim-style editing with syntax highlighting. Its starting point was a fork of the Red editor.

The project produced a Mac editor and a project website with its own visual theme.

How it works

  • Edit in modes

    RedVim forked the Red terminal editor. A user could navigate a source file and enter editing mode without leaving the terminal.

  • Ship highlighting with the executable

    The fork compiled support for languages including Nushell, C, Terraform and Caddyfile syntax into the binary. Recognizing a file at first use did not depend on downloading and trusting an external grammar.

Inspect a build script offline

Opening a Nushell file exercised file recognition, tokenization and rendering together. A fixture containing a command, a quoted argument and a comment gives an agent a reproducible test when changing those rules.

Project history

  1. The project published 0.7.0 and credited its upstream editor. RedVim 0.7.0

  2. The release series reached 0.7.13. The October portfolio documented its expanded set of built-in languages. RedVim 0.7.13

Sources