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 @pikjes2:

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

102 active golfers, 347 entries

Solutions by @pikjes2:
18
#49 - pikjes / @pikjes2

03/25/2021 at 11:21AM

19
#>56 - pikjes / @pikjes2

03/25/2021 at 11:21AM

20
#>59 - pikjes / @pikjes2

03/25/2021 at 11:21AM

21
#>64 - pikjes / @pikjes2

03/25/2021 at 11:19AM

22
#>70 - pikjes / @pikjes2

03/25/2021 at 11:19AM

23
#>71 - pikjes / @pikjes2

03/25/2021 at 11:17AM

26
#>74 - pikjes / @pikjes2

03/25/2021 at 11:17AM

27
#>76 - pikjes / @pikjes2

03/25/2021 at 11:16AM

28
#>80 - pikjes / @pikjes2

03/25/2021 at 11:16AM

29
#>81 - pikjes / @pikjes2

03/25/2021 at 11:15AM

30
#>83 - pikjes / @pikjes2

03/25/2021 at 11:15AM

31
#>85 - pikjes / @pikjes2

03/25/2021 at 11:14AM

32
#>88 - pikjes / @pikjes2

03/25/2021 at 11:13AM

33
#>89 - pikjes / @pikjes2

03/25/2021 at 11:13AM

34
#>92 - pikjes / @pikjes2

03/25/2021 at 11:12AM

35
#>94 - pikjes / @pikjes2

03/25/2021 at 11:11AM

36
#>95 - pikjes / @pikjes2

03/25/2021 at 11:10AM

38
#>96 - pikjes / @pikjes2

03/25/2021 at 11:10AM

39
#>97 - pikjes / @pikjes2

03/25/2021 at 11:09AM

48
#>98 - pikjes / @pikjes2

03/25/2021 at 11:08AM