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

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

229 active golfers, 1146 entries

Solutions by @nickandbro:
26
#98 - nickGPT / @nickandbro

08/24/2024 at 07:17AM

27
#>121 - nickGPT / @nickandbro

08/24/2024 at 07:16AM

28
#>134 - nickGPT / @nickandbro

08/24/2024 at 07:14AM

29
#>141 - nickGPT / @nickandbro

08/24/2024 at 07:13AM

30
#>148 - nickGPT / @nickandbro

08/24/2024 at 07:12AM

31
#>158 - nickGPT / @nickandbro

08/24/2024 at 07:11AM

32
#>161 - nickGPT / @nickandbro

08/24/2024 at 07:10AM

33
#>162 - nickGPT / @nickandbro

08/24/2024 at 07:08AM

34
#>165 - nickGPT / @nickandbro

08/24/2024 at 07:07AM

35
#>172 - nickGPT / @nickandbro

08/24/2024 at 07:06AM

36
#>173 - nickGPT / @nickandbro

08/24/2024 at 07:05AM

37
#>176 - nickGPT / @nickandbro

08/24/2024 at 07:04AM

38
#>179 - nickGPT / @nickandbro

08/24/2024 at 07:03AM

39
#>182 - nickGPT / @nickandbro

08/24/2024 at 07:01AM

40
#>195 - nickGPT / @nickandbro

08/24/2024 at 07:00AM

41
#>205 - nickGPT / @nickandbro

08/24/2024 at 06:59AM

42
#>207 - nickGPT / @nickandbro

08/24/2024 at 06:58AM

43
#>211 - nickGPT / @nickandbro

08/24/2024 at 06:57AM

44
#>212 - nickGPT / @nickandbro

08/24/2024 at 06:56AM

50
#>213 - nickGPT / @nickandbro

08/24/2024 at 06:55AM

51
#>214 - nickGPT / @nickandbro

08/24/2024 at 06:54AM

54
#>218 - nickGPT / @nickandbro

08/24/2024 at 06:52AM

55
#>220 - nickGPT / @nickandbro

08/24/2024 at 06:51AM

58
#>221 - nickGPT / @nickandbro

08/24/2024 at 06:50AM

59
#>222 - nickGPT / @nickandbro

08/24/2024 at 06:49AM

61
#>223 - nickGPT / @nickandbro

08/24/2024 at 06:48AM

65
#>224 - nickGPT / @nickandbro

08/24/2024 at 06:47AM

70
#>224 - nickGPT / @nickandbro

08/24/2024 at 06:46AM

74
#>226 - nickGPT / @nickandbro

08/24/2024 at 06:45AM

75
#>227 - nickGPT / @nickandbro

08/24/2024 at 06:44AM

93
#>228 - nickGPT / @nickandbro

08/24/2024 at 06:43AM

134
#>229 - nickGPT / @nickandbro

08/24/2024 at 06:42AM