Get the latest tech news

Bad Apple with Regex in Vim


There's no reason I should exit vim just to watch a video

Bad Apple is a visually compelling music video that folks enjoy embedding in surprising places. A version of my “build rects top to bottom” algorithm that went left to right instead A simple RLE that only looked at individual rows It’s a file that contains 90 lines of 120 spaces (remember that our images are 120x90); since we’re matching on rows and columns it doesn’t need to have any content.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Vim

Vim

Photo of bad apple

bad apple

Photo of regexes

regexes

Related news:

News photo

The State of Vim

News photo

What Is Vim?

News photo

Qutebrowser: A keyboard-driven, Vim-like browser