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

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

11 active golfers, 36 entries

Solutions by @JeanGeo20504212:
39
#1 - Jean George / @JeanGeo20504212

06/03/2024 at 10:55PM

41
#>4 - Jean George / @JeanGeo20504212

06/03/2024 at 06:23PM

49
#>4 - Jean George / @JeanGeo20504212

05/31/2024 at 06:13AM

50
#>4 - Jean George / @JeanGeo20504212

05/30/2024 at 12:19PM

51
#>4 - Jean George / @JeanGeo20504212

05/29/2024 at 11:06PM

53
#>4 - Jean George / @JeanGeo20504212

05/29/2024 at 10:12PM