Navigation
Home & news
Random page
All pages
Site search:
Databases
Fortune cookies
Haikus
SID themes
Page collections
Blag
Chip music
Chipophone
Games
Hardware projects
Music downloads
Obfuscated programming
Piano music
Sane programming
Scene productions
SID related pages
Software downloads
Video downloads
Featured pages
A Chipful of Love For You
Autosokoban
Beagleboard VGA
Binary Art
Brainfuck
Chipophone
Chopin romance
Craft
Elements of Chip Music
Fratres
GCR decoding on the fly
Hardsync
Kernighan's lever
Klämrisk Hero
Live at LCP 2011
Parallelogram
Phasor
Pipe Logic
Poems for bugs
Rasp64
Reverberations
Sidreloc
Specular Highlight
Spindle
TTY demystified
We learn the nibbles
Vim + ^Z
Zeugma
Don't miss

Rasp64
Forum
Register
Log in
Latest comments
Syndication
RSS feed
Feedback
  • Swedish content
  • Personal content
  • Offensive content

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. ;)
Anonymous
Tue 19-Jan-2010 01:18
You really should get out more often.
By the way, I am having fun looking at some of the crazy stuff you are doing
Anonymous
Mon 14-Feb-2011 20:24
Hanoi works, but mandelbrot just keeps writing strange stuff to my console.
Anonymous
Tue 15-Feb-2011 19:19
That's purely insane O_o
If only there was an iovvv (think of ioccc), maybe it's time to setup the chalenge.

I didn't realise at first it was drawing the set but it was on my 170MHz dear host. switching to a 3GHz pc helps rendering it faster :p

congrats anyway
Anonymous
Tue 17-May-2011 21:24
Unbelievable! Congrats for such a genius insight!

Beco.
Anonymous
Wed 20-Jul-2011 12:54
Very well done!
Anonymous
Fri 19-Aug-2011 10:17
You really should get out more often.
He is just extraordinarily intelligent ;) Great work.
Anonymous
Sat 14-Sep-2013 03:33
Oh god, you just ruined my favorite editor. Well done!