Bad Apple in Vim: 6500 Regexes and a Whole Lotta Magic
2025-01-12

This post details how the author rendered the Bad Apple music video within Vim using only search queries. Each frame was converted into a binary pixel array, decomposed into rectangles, and represented by a Vim regex. The result? A file containing over 6500 regexes, played sequentially via a Vim macro to create the animation. This impressive feat showcases Vim's surprising capabilities and the author's considerable programming skill.
Development
Regex