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

105 active golfers, 367 entries

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

03/25/2021 at 11:21AM

19
#>58 - pikjes / @pikjes2

03/25/2021 at 11:21AM

20
#>61 - pikjes / @pikjes2

03/25/2021 at 11:21AM

21
#>67 - pikjes / @pikjes2

03/25/2021 at 11:19AM

22
#>73 - pikjes / @pikjes2

03/25/2021 at 11:19AM

23
#>74 - pikjes / @pikjes2

03/25/2021 at 11:17AM

26
#>77 - pikjes / @pikjes2

03/25/2021 at 11:17AM

27
#>79 - pikjes / @pikjes2

03/25/2021 at 11:16AM

28
#>83 - pikjes / @pikjes2

03/25/2021 at 11:16AM

29
#>84 - pikjes / @pikjes2

03/25/2021 at 11:15AM

30
#>86 - pikjes / @pikjes2

03/25/2021 at 11:15AM

31
#>88 - pikjes / @pikjes2

03/25/2021 at 11:14AM

32
#>91 - pikjes / @pikjes2

03/25/2021 at 11:13AM

33
#>92 - pikjes / @pikjes2

03/25/2021 at 11:13AM

34
#>95 - pikjes / @pikjes2

03/25/2021 at 11:12AM

35
#>97 - pikjes / @pikjes2

03/25/2021 at 11:11AM

36
#>98 - pikjes / @pikjes2

03/25/2021 at 11:10AM

38
#>99 - pikjes / @pikjes2

03/25/2021 at 11:10AM

39
#>100 - pikjes / @pikjes2

03/25/2021 at 11:09AM

48
#>101 - pikjes / @pikjes2

03/25/2021 at 11:08AM