‹ BackHN Continuity

Thread

Small programming tricks

681 points · 294 comments · signa11

  1. the-mitr · · focus · HN ↗
    One of the things I frequently use with Emacs is writing/recording macros on the fly with F3 and running them. I am sure this is present in the other editors as well, but this has helped me a lot at times

    <a href="https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;emacs&#x2F;manual&#x2F;html_node&#x2F;emacs&#x2F;Basic-Keyboard-Macro.html" rel="nofollow">https:&#x2F;&#x2F;www.gnu.org&#x2F;software&#x2F;emacs&#x2F;manual&#x2F;html_node&#x2F;emacs&#x2F;Ba...

    1. hiAndrewQuinn · · focus · HN ↗
      I do this all the time with Vim. To the point that it astonishes me that this isn&#x27;t like the third or fourth thing people learn about Vim.

      You can just record and play back your exact keystrokes like a _Super Smash Melee_ game plays back your inputs to replay matches. If you can figure out how to do any mildly complex action once you can literally replay it a thousand times. Just like AutoHotKey! To my that&#x27;s the essence of citizen programming!

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.