Vim code

More obfuscated programming

VI VI VI - Editor of the beast.

Vim can be programmed, just like emacs can. But I'm not talking about the fancy-schmancy .vimrc-style scripting. I'm talking about copying parts of the buffer into registers, and then executing the contents of those registers as if they were macros.

If you don't think it's insane yet, wait till you see the source code:

Note: If you have configured vim to use alternate keyboard mappings, these programs won't work. If this is the case, start vim with the standard mapping, i.e. "vim -u NONE mandelbrot".

So now I'll leave it to someone else to implement an ELisp interpreter. =)

Discuss this page

Disclaimer: I am not responsible for what people (other than myself) write in the forums. Please report any abuse, such as insults, slander, spam and illegal material, and I will take appropriate actions. Don't feed the trolls.

Jag tar inget ansvar för det som skrivs i forumet, förutom mina egna inlägg. Vänligen rapportera alla inlägg som bryter mot reglerna, så ska jag se vad jag kan göra. Som regelbrott räknas till exempel förolämpningar, förtal, spam och olagligt material. Mata inte trålarna.

Anonymous
Fri 25-Sep-2009 21:29
You must have a lot of time on your hands. Fun snippets though, must've been a blast to get working. ;)

11 more comments hidden. Click to show all.

Anonymous
Sat 12-Jan-2019 20:24
Absolutely amazing!
Anonymous
Sat 19-Jan-2019 15:28
Eh ... I thought you were talking about CPU registers :/

Nothing to see here ... :)
Anonymous
Tue 12-Mar-2024 16:00
This is extremly amazing, am a newbie into vim/nvim and i really like your work, thanks so much for the inspiration.
Anonymous
Tue 27-May-2025 17:53
You really should get out more often.
He is just extraordinarily intelligent ;) Great work.

He certainly is, though this is just a subjective statement. More objective would be his IQ or, even better, how many sigmas above the mean he is. See t3x.org for more information on how truly smart people suffer in the world (text is t3x.org/files/gap.pdf) Also has an article as PDF published in Triple Nine Societies vidya mag about two people -- one man, one woman -- suffering from having a three+ sigma IQ, thinking about suicide on a regular basis. Nothing against this fellow -- it's just that our world is now at the point where every invention just makes the world uglier and more vulgar. We live because we were born, I would end my life were I not a Christian. (See also Vox Day's work, who is a Christian with a 150 IQ, as well as Chris Langan's work, who has an IQ of around 210 [sic]). Not sure what IQ hack.org/mc -- another Swede -- has, but he is not that much of a reader, instead busy tweaking his emacs).