See Vim solve the towers of Hanoi! Instructions: type ":so hanoi.vim" to load the macros type "g" to start it and watch it go. to quit type ":q!" to interrupt type CTRL-C (This text will disappear as soon as you type "g")