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