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

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

114 active golfers, 421 entries

Solutions by @kok89428331:
18
#53 - kok / @kok89428331

07/26/2020 at 07:48AM

19
#>64 - kok / @kok89428331

07/26/2020 at 07:47AM

20
#>68 - kok / @kok89428331

07/26/2020 at 07:47AM

21
#>74 - kok / @kok89428331

07/26/2020 at 07:44AM

22
#>80 - kok / @kok89428331

07/26/2020 at 07:43AM

23
#>82 - kok / @kok89428331

07/26/2020 at 07:42AM

26
#>84 - kok / @kok89428331

07/26/2020 at 07:41AM

27
#>86 - kok / @kok89428331

07/26/2020 at 07:41AM

28
#>90 - kok / @kok89428331

07/26/2020 at 07:40AM

29
#>92 - kok / @kok89428331

07/26/2020 at 07:39AM

30
#>94 - kok / @kok89428331

07/26/2020 at 07:37AM

31
#>96 - kok / @kok89428331

07/26/2020 at 07:36AM

32
#>99 - kok / @kok89428331

07/26/2020 at 07:36AM

33
#>100 - kok / @kok89428331

07/26/2020 at 07:35AM

34
#>102 - kok / @kok89428331

07/26/2020 at 07:33AM

35
#>104 - kok / @kok89428331

07/26/2020 at 07:32AM

36
#>106 - kok / @kok89428331

07/26/2020 at 07:31AM

38
#>107 - kok / @kok89428331

07/26/2020 at 07:30AM

39
#>108 - kok / @kok89428331

07/26/2020 at 07:29AM

40
#>108 - kok / @kok89428331

07/26/2020 at 07:38AM

45
#>108 - kok / @kok89428331

07/26/2020 at 07:27AM

54
#>112 - kok / @kok89428331

07/26/2020 at 07:23AM

56
#>112 - kok / @kok89428331

07/26/2020 at 07:15AM

56
#>112 - kok / @kok89428331

07/26/2020 at 07:21AM