Question

Having nothing better to do, I've learned that if you open the following text on vim:

...............X..........................................
...............X..........................................
................XX........................................
..................XX......................................
....................XX....................................
......................XXX.................................
.........................XXX..............................
............................XX............................
..............................XX..........................
................................XX........................
..................................X.......................
...................................X......................
...................................X......................
...................................X......................
..................................X.......................
................................XX........................
..............................XX..........................
............................XX............................
.........................XXX..............................
......................XXX.................................
....................XX....................................
..................XX......................................
................XX........................................
...............X..........................................
...............X..........................................
...............X..........................................
................XX........................................
..................XX......................................
....................XX....................................
......................XXX.................................
.........................XXX..............................
............................XX............................
..............................XX..........................
................................XX........................
..................................X.......................
...................................X......................
...................................X......................
...................................X......................
..................................X.......................
................................XX........................
..............................XX..........................
............................XX............................
.........................XXX..............................
......................XXX.................................
....................XX....................................
..................XX......................................
................XX........................................
...............X..........................................

... set the following map:

:noremap t ddGpgg

... and hold the "t" key down, you'll watch a cool sine waving.

This, on other hand:

:noremap t ddGpMddGpgg

Will candy your eyes with a cool DNA-spinning animation. What other neat looking animations are possible with VIM mappings? Is it possible to simulate a cellular automaton?

Was it helpful?

Solution

Linus Akesson's created some cool (somewhat related) things: http://www.linusakesson.net/programming/vim/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top