Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 55771cc4750ef86573003b83

Line 'em up!

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

Start file
foo {
    a   => "a",
    bc  => "bc",
    def => "def",
    ghij => "ghij",
    k => "k",
    lmn => "lmn",
    opqrst => "opqrst",
    uvw => "uvw",
    xyz => "xyz",
}
End file
foo {
    a       => "a",
    bc      => "bc",
    def     => "def",
    ghij    => "ghij",
    k       => "k",
    lmn     => "lmn",
    opqrst  => "opqrst",
    uvw     => "uvw",
    xyz     => "xyz",
}

View Diff

2,10c2,10
<     a   => "a",
<     bc  => "bc",
<     def => "def",
<     ghij => "ghij",
<     k => "k",
<     lmn => "lmn",
<     opqrst => "opqrst",
<     uvw => "uvw",
<     xyz => "xyz",
---
>     a       => "a",
>     bc      => "bc",
>     def     => "def",
>     ghij    => "ghij",
>     k       => "k",
>     lmn     => "lmn",
>     opqrst  => "opqrst",
>     uvw     => "uvw",
>     xyz     => "xyz",

Solutions by @nickandbro:

Unlock 24 remaining solutions by signing in and submitting your own entry
Created by: @oneandoneis2

114 active golfers, 421 entries

Solutions by @nickandbro:
17
#41 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

18
#>57 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

19
#>65 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

20
#>69 - nickGPT / @nickandbro

08/28/2024 at 04:10AM

21
#>74 - nickGPT / @nickandbro

08/28/2024 at 04:09AM

22
#>81 - nickGPT / @nickandbro

08/28/2024 at 04:09AM

23
#>82 - nickGPT / @nickandbro

08/28/2024 at 04:09AM

26
#>84 - nickGPT / @nickandbro

08/28/2024 at 04:09AM

27
#>86 - nickGPT / @nickandbro

08/28/2024 at 04:09AM

28
#>91 - nickGPT / @nickandbro

08/28/2024 at 04:09AM

29
#>92 - nickGPT / @nickandbro

08/28/2024 at 04:09AM

30
#>94 - nickGPT / @nickandbro

08/28/2024 at 04:09AM

31
#>96 - nickGPT / @nickandbro

08/28/2024 at 04:09AM

32
#>99 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

33
#>100 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

34
#>103 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

35
#>105 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

36
#>106 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

38
#>107 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

39
#>108 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

48
#>109 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

50
#>109 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

54
#>112 - nickGPT / @nickandbro

08/28/2024 at 04:08AM

84
#>113 - nickGPT / @nickandbro

08/28/2024 at 04:08AM