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

Reorder the groups

Change the order so that the groups of fruit come before the vegetables.

Start file
# vegetable
broccoli
spinach
carrot
-
# fruit
peach
plum
-
# vegetable
potato
-
# fruit
apple
banana
-
# vegetable
onion
-
# fruit
watermelon
cherry
-
End file
# fruit
peach
plum
-
# fruit
apple
banana
-
# fruit
watermelon
cherry
-
# vegetable
broccoli
spinach
carrot
-
# vegetable
potato
-
# vegetable
onion
-

View Diff

1,5d0
< # vegetable
< broccoli
< spinach
< carrot
< -
10,12d4
< # vegetable
< potato
< -
17,19d8
< # vegetable
< onion
< -
22a12,22
> -
> # vegetable
> broccoli
> spinach
> carrot
> -
> # vegetable
> potato
> -
> # vegetable
> onion

Solutions by @AdamKat01277576:

Unlock 15 remaining solutions by signing in and submitting your own entry
Created by: @valacar

252 active golfers, 1112 entries

Solutions by @AdamKat01277576:
15
#99 - Adam Katz / @AdamKat01277576

08/12/2019 at 08:19AM

17
#>126 - Adam Katz / @AdamKat01277576

08/12/2019 at 08:18AM

18
#>134 - Adam Katz / @AdamKat01277576

08/12/2019 at 08:15AM

19
#>149 - Adam Katz / @AdamKat01277576

08/12/2019 at 08:14AM

20
#>158 - Adam Katz / @AdamKat01277576

08/08/2019 at 07:25AM

21
#>176 - Adam Katz / @AdamKat01277576

08/08/2019 at 07:23AM

22
#>185 - Adam Katz / @AdamKat01277576

08/07/2019 at 06:24AM

23
#>193 - Adam Katz / @AdamKat01277576

08/07/2019 at 06:22AM

24
#>199 - Adam Katz / @AdamKat01277576

08/07/2019 at 06:17AM

25
#>204 - Adam Katz / @AdamKat01277576

08/07/2019 at 06:15AM

26
#>208 - Adam Katz / @AdamKat01277576

08/07/2019 at 06:13AM

27
#>214 - Adam Katz / @AdamKat01277576

08/05/2019 at 12:08PM

28
#>221 - Adam Katz / @AdamKat01277576

08/05/2019 at 12:05PM

29
#>224 - Adam Katz / @AdamKat01277576

08/05/2019 at 12:01PM

30
#>233 - Adam Katz / @AdamKat01277576

08/05/2019 at 11:42AM