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

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

259 active golfers, 1137 entries

Solutions by @leo28356948:
14
#51 - leo / @leo28356948

10/18/2019 at 06:01AM

15
#>104 - leo / @leo28356948

10/18/2019 at 06:00AM

16
#>123 - leo / @leo28356948

10/18/2019 at 05:59AM

17
#>132 - leo / @leo28356948

10/18/2019 at 05:57AM

20
#>165 - leo / @leo28356948

10/18/2019 at 05:55AM

21
#>185 - leo / @leo28356948

10/18/2019 at 05:53AM

22
#>193 - leo / @leo28356948

10/18/2019 at 05:53AM

23
#>201 - leo / @leo28356948

10/18/2019 at 05:52AM

24
#>206 - leo / @leo28356948

10/18/2019 at 05:52AM

25
#>212 - leo / @leo28356948

10/18/2019 at 05:51AM

26
#>215 - leo / @leo28356948

10/18/2019 at 05:50AM

27
#>221 - leo / @leo28356948

10/18/2019 at 05:56AM

28
#>228 - leo / @leo28356948

10/18/2019 at 05:49AM

29
#>231 - leo / @leo28356948

10/18/2019 at 05:47AM

30
#>240 - leo / @leo28356948

10/18/2019 at 05:45AM

32
#>246 - leo / @leo28356948

10/18/2019 at 05:44AM

36
#>249 - leo / @leo28356948

10/18/2019 at 05:43AM

41
#>251 - leo / @leo28356948

10/18/2019 at 05:40AM