http://www.perlmonks.org?node_id=400900


in reply to Recursion: The Towers of Hanoi problem

For those of you that run emacs, you can see the Towers of Hanoi by typing:

<M>-x hanoi <ret>

"Look, Shiny Things!" is not a better business strategy than compatibility and reuse.


OSUnderdog

Replies are listed 'Best First'.
Re: OT: Towers of Hanoi: emacs
by gellyfish (Monsignor) on Oct 20, 2004 at 16:01 UTC

    And for those that might use vim you can type:

    :so /usr/share/vim/macros/hanoi/hanoi.vim <ret> g
    But to be honest it is a bit fast to be interesting ;-)

    /J\

      if you have vim version 61 they changed the default share directory: /usr/share/vim/vim61/macros/hanoi/hanoi.vim, regardless locate hanoi (or window find hanoi) should reveal it's location. So that's:

      :so /usr/share/vim/vim61/macros/hanoi/hanoi.vim g

      "Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce

      Can't open file /usr/share/vim/macros/hanoi/hanoi.vim
      Guess not for every vim.

      PICO RULZ!