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 5ec18a61827ca60009087755

Replace pattern with 1, 2, 3, ... on each line

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

Start file
I can't see the $ for all the $,
But there $ not $ $ tomorrow.
$ she can do $ and 4,
$ the $ in the $ and $ the $.
End file
I can't see the 1 for all the 2,
But there 1 not 2 3 tomorrow.
1 she can do 2 and 4,
1 the 2 in the 3 and 4 the 5.

View Diff

1,4c1,4
< I can't see the $ for all the $,
< But there $ not $ $ tomorrow.
< $ she can do $ and 4,
< $ the $ in the $ and $ the $.
\ No newline at end of file
---
> I can't see the 1 for all the 2,
> But there 1 not 2 3 tomorrow.
> 1 she can do 2 and 4,
> 1 the 2 in the 3 and 4 the 5.
\ No newline at end of file

Solutions by @chocola81394123:

Unlock 11 remaining solutions by signing in and submitting your own entry
Created by: @kaddkaka

223 active golfers, 1090 entries

Solutions by @chocola81394123:
22
#61 - chocolate / @chocola81394123

05/26/2020 at 08:14PM

23
#>88 - chocolate / @chocola81394123

05/26/2020 at 08:11PM

27
#>95 - chocolate / @chocola81394123

05/26/2020 at 08:07PM

28
#>119 - chocolate / @chocola81394123

05/26/2020 at 08:06PM

30
#>137 - chocolate / @chocola81394123

05/26/2020 at 08:05PM

31
#>145 - chocolate / @chocola81394123

05/26/2020 at 08:03PM

35
#>161 - chocolate / @chocola81394123

05/26/2020 at 07:13PM

37
#>168 - chocolate / @chocola81394123

05/26/2020 at 07:09PM

40
#>178 - chocolate / @chocola81394123

05/26/2020 at 07:06PM

41
#>190 - chocolate / @chocola81394123

05/26/2020 at 06:56PM

59
#>215 - chocolate / @chocola81394123

05/26/2020 at 06:56PM