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 9v0066567c28000000000277

Count words

Merge duplicates and count each word.

Start file
lorem ipsum adipiscing consectetur sit do tempor do magna sit et lorem eiusmod
et dolore labore consectetur consectetur incididunt ut aliqua sit sit magna et
incididunt do aliqua eiusmod et dolore do tempor adipiscing incididunt
consectetur elit dolore eiusmod incididunt sit magna lorem eiusmod sit et ut
incididunt do magna incididunt labore labore et consectetur adipiscing do
magna sit ut sit et do eiusmod do tempor et do magna et sit et ut et sit
labore et eiusmod et labore ut sit consectetur ut magna et magna do et sit et
dolore sit tempor ut dolore magna labore magna ut sit incididunt consectetur
ut labore et et elit sit labore magna consectetur ut labore et et sit sit
tempor et ut tempor et ut eiusmod do et sit incididunt
End file
"ipsum" : 1
"aliqua" : 2
"elit" : 2
"adipiscing" : 3
"lorem" : 3
"dolore" : 5
"tempor" : 6
"eiusmod" : 7
"consectetur" : 8
"incididunt" : 8
"labore" : 9
"do" : 11
"magna" : 11
"ut" : 12
"sit" : 18
"et" : 23

View Diff

1,10c1,16
< lorem ipsum adipiscing consectetur sit do tempor do magna sit et lorem eiusmod
< et dolore labore consectetur consectetur incididunt ut aliqua sit sit magna et
< incididunt do aliqua eiusmod et dolore do tempor adipiscing incididunt
< consectetur elit dolore eiusmod incididunt sit magna lorem eiusmod sit et ut
< incididunt do magna incididunt labore labore et consectetur adipiscing do
< magna sit ut sit et do eiusmod do tempor et do magna et sit et ut et sit
< labore et eiusmod et labore ut sit consectetur ut magna et magna do et sit et
< dolore sit tempor ut dolore magna labore magna ut sit incididunt consectetur
< ut labore et et elit sit labore magna consectetur ut labore et et sit sit
< tempor et ut tempor et ut eiusmod do et sit incididunt
---
> "ipsum" : 1
> "aliqua" : 2
> "elit" : 2
> "adipiscing" : 3
> "lorem" : 3
> "dolore" : 5
> "tempor" : 6
> "eiusmod" : 7
> "consectetur" : 8
> "incididunt" : 8
> "labore" : 9
> "do" : 11
> "magna" : 11
> "ut" : 12
> "sit" : 18
> "et" : 23

Solutions by @insomnight:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @maharba6

17 active golfers, 62 entries

Solutions by @insomnight:
39
#5 - got_windy / @insomnight

11/06/2024 at 12:29AM

53
#>5 - got_windy / @insomnight

11/05/2024 at 08:55AM

61
#>10 - got_windy / @insomnight

11/05/2024 at 08:38AM

66
#>11 - got_windy / @insomnight

11/05/2024 at 08:34AM

72
#>11 - got_windy / @insomnight

11/05/2024 at 08:26AM

175
#>12 - got_windy / @insomnight

11/05/2024 at 07:44AM

217
#>15 - got_windy / @insomnight

11/05/2024 at 07:38AM