Solution To Yesterday’s Challenge

Yesterday’s post asked you to turn 26 lines of

a b c d e f g h i j k l m n o p q r s t u v w x y z

into 26 lines of

a    b    c    d    e    f    g    h    i    j    k    l    m    n    o    p    q    r    s    t    u    v    w    x    y    z

by replacing the blanks with a series of 4 blanks.

The best Vim solution (13 keystrokes ignoring the file saving) on the VimGolf site uses a substitute operation to replace a single blank with 4 blanks. If we use the same strategy in Emacs we get

Meta+%
Return
Return
!

for 9 keystrokes. That’s good but if we replace 【 】 with 【Ctrl+4 】 we get it down to 7.

Update: 【Ctrl】 → 【Meta

This entry was posted in General and tagged . Bookmark the permalink.