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 5486c522908f4600023c53fa

Test everything!

... and build the desired input data structure. Transform a list of values into a non-trivial format.

Start file
        { changed_field => 'lorem', old_value => 'a', new_value => 'b' },
lorem ipsum dolor sit amet elitr sed diam non umy eir mod tempor invi dunt lab ore
dol1 dol2 dol3 dol4 dol5 dol6 dol7 dol8 dol9 dol10 mag1 mag2 mag3 mag4 mag5 mag6 mag7 mag8 mag9 mag10
End file
        { changed_field => 'lorem', old_value => 'a', new_value => 'b' },
        { changed_field => 'ipsum', old_value => 'a', new_value => 'b' },
        { changed_field => 'dolor', old_value => 'a', new_value => 'b' },
        { changed_field => 'sit', old_value => 'a', new_value => 'b' },
        { changed_field => 'amet', old_value => 'a', new_value => 'b' },
        { changed_field => 'elitr', old_value => 'a', new_value => 'b' },
        { changed_field => 'sed', old_value => 'a', new_value => 'b' },
        { changed_field => 'diam', old_value => 'a', new_value => 'b' },
        { changed_field => 'non', old_value => 'a', new_value => 'b' },
        { changed_field => 'umy', old_value => 'a', new_value => 'b' },
        { changed_field => 'eir', old_value => 'a', new_value => 'b' },
        { changed_field => 'mod', old_value => 'a', new_value => 'b' },
        { changed_field => 'tempor', old_value => 'a', new_value => 'b' },
        { changed_field => 'invi', old_value => 'a', new_value => 'b' },
        { changed_field => 'dunt', old_value => 'a', new_value => 'b' },
        { changed_field => 'lab', old_value => 'a', new_value => 'b' },
        { changed_field => 'ore', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol1', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol2', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol3', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol4', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol5', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol6', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol7', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol8', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol9', old_value => 'a', new_value => 'b' },
        { changed_field => 'dol10', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag1', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag2', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag3', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag4', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag5', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag6', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag7', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag8', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag9', old_value => 'a', new_value => 'b' },
        { changed_field => 'mag10', old_value => 'a', new_value => 'b' },

View Diff

2,3c2,37
< lorem ipsum dolor sit amet elitr sed diam non umy eir mod tempor invi dunt lab ore
< dol1 dol2 dol3 dol4 dol5 dol6 dol7 dol8 dol9 dol10 mag1 mag2 mag3 mag4 mag5 mag6 mag7 mag8 mag9 mag10
---
>         { changed_field => 'ipsum', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dolor', old_value => 'a', new_value => 'b' },
>         { changed_field => 'sit', old_value => 'a', new_value => 'b' },
>         { changed_field => 'amet', old_value => 'a', new_value => 'b' },
>         { changed_field => 'elitr', old_value => 'a', new_value => 'b' },
>         { changed_field => 'sed', old_value => 'a', new_value => 'b' },
>         { changed_field => 'diam', old_value => 'a', new_value => 'b' },
>         { changed_field => 'non', old_value => 'a', new_value => 'b' },
>         { changed_field => 'umy', old_value => 'a', new_value => 'b' },
>         { changed_field => 'eir', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mod', old_value => 'a', new_value => 'b' },
>         { changed_field => 'tempor', old_value => 'a', new_value => 'b' },
>         { changed_field => 'invi', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dunt', old_value => 'a', new_value => 'b' },
>         { changed_field => 'lab', old_value => 'a', new_value => 'b' },
>         { changed_field => 'ore', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol1', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol2', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol3', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol4', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol5', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol6', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol7', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol8', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol9', old_value => 'a', new_value => 'b' },
>         { changed_field => 'dol10', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag1', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag2', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag3', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag4', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag5', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag6', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag7', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag8', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag9', old_value => 'a', new_value => 'b' },
>         { changed_field => 'mag10', old_value => 'a', new_value => 'b' },

Solutions by @nickandbro:

Unlock 23 remaining solutions by signing in and submitting your own entry
Created by: @Someone_Busy

54 active golfers, 186 entries

Solutions by @nickandbro:
22
#7 - nickGPT / @nickandbro

08/28/2024 at 04:51AM

23
#>11 - nickGPT / @nickandbro

08/28/2024 at 04:51AM

24
#>13 - nickGPT / @nickandbro

08/28/2024 at 04:51AM

25
#>19 - nickGPT / @nickandbro

08/28/2024 at 04:51AM

26
#>21 - nickGPT / @nickandbro

08/28/2024 at 04:51AM

27
#>22 - nickGPT / @nickandbro

08/28/2024 at 04:51AM

29
#>24 - nickGPT / @nickandbro

08/28/2024 at 04:51AM

31
#>26 - nickGPT / @nickandbro

08/28/2024 at 04:51AM

32
#>30 - nickGPT / @nickandbro

08/28/2024 at 04:50AM

32
#>30 - nickGPT / @nickandbro

08/28/2024 at 04:50AM

33
#>35 - nickGPT / @nickandbro

08/28/2024 at 04:50AM

34
#>39 - nickGPT / @nickandbro

08/28/2024 at 04:50AM

36
#>41 - nickGPT / @nickandbro

08/28/2024 at 04:50AM

37
#>42 - nickGPT / @nickandbro

08/28/2024 at 04:50AM

39
#>43 - nickGPT / @nickandbro

08/28/2024 at 04:50AM

40
#>46 - nickGPT / @nickandbro

08/28/2024 at 04:50AM

41
#>47 - nickGPT / @nickandbro

08/28/2024 at 04:49AM

42
#>49 - nickGPT / @nickandbro

08/28/2024 at 04:49AM

43
#>50 - nickGPT / @nickandbro

08/28/2024 at 04:49AM

44
#>51 - nickGPT / @nickandbro

08/28/2024 at 04:49AM

46
#>52 - nickGPT / @nickandbro

08/28/2024 at 04:49AM

50
#>53 - nickGPT / @nickandbro

08/28/2024 at 04:49AM

83
#>54 - nickGPT / @nickandbro

08/28/2024 at 04:49AM