Author showcases how to run the visually compelling music video “Bad Apple” in vim using search queries. Frames of the video are transformed into text previews, then drawn using vim’s highlighting features. Although an initial naive algorithm had performance issues, multiple solutions were created to generate optimal search patterns. A vim macro is employed to play the video, demonstrating the power of vim macros in automating tasks. The project was completed in a day, with potential tweaks for future optimization. Overall, a unique and fun experiment showcasing the capabilities of vim.
https://eieio.games/blog/bad-apple-with-regex-in-vim/