{"id":1489,"date":"2012-12-10T04:48:00","date_gmt":"2012-12-10T09:48:00","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=1489"},"modified":"2012-12-10T04:49:43","modified_gmt":"2012-12-10T09:49:43","slug":"another-vimgolf-in-emacs-challenge","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=1489","title":{"rendered":"Another VimGolf in Emacs Challenge"},"content":{"rendered":"<p>Here&#8217;s another VimGolf in Emacs from a <a href=\"http:\/\/vimgolf.com\/challenges\/50be61aea748a30002000047\">recent challenge<\/a> on the <a href=\"http:\/\/vimgolf.com\/\">VimGolf site<\/a>. Your task is to replace the blanks between the letters with 4 blanks and to do it for each line. Here&#8217;s the starting file<\/p>\n<pre class=\"example\">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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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\r\na 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<\/pre>\n<p>and the ending file<\/p>\n<pre class=\"example\">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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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\r\na    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<\/pre>\n<p>Disregarding the keystrokes necessary to save the buffer to a file, the best Vim solution is 13 keystrokes. I can do it in 7 with Emacs. Can you beat that? I&#8217;ll post my solution in the next day or two.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s another VimGolf in Emacs from a recent challenge on the VimGolf site. Your task is to replace the blanks between the letters with 4 blanks and to do it for each line. Here&#8217;s the starting file a b c &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=1489\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-1489","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1489"}],"version-history":[{"count":4,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1489\/revisions"}],"predecessor-version":[{"id":1502,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1489\/revisions\/1502"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}