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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 97 remaining solutions by signing in and submitting your own entry
#98 deedeemeen / @deedeemeen - Score: 92 - 06/09/19 @ 03:56
13GVjjjdggpuOjk<BS><BS><Esc>pkddjjjjjjjjjVjjdggPjjjjjjjjjjjddkkkkkkkkkpjjjjjjjjjjjjjjjjVGdggjjjjjjjpZZ

0 comments


Created by: @valacar

98 active golfers, 344 entries

Leaderboard (lowest score wins):
32
#91 - pommevilla / @pawlrus

06/07/2019 at 09:49AM

32
#92 - Mike Clark / @mikeclark729

06/11/2019 at 02:25PM

32
#93 - Emil Braserud / @Erdustiggen

06/24/2019 at 01:20PM

34
#94 - David Nash / @david_nash

06/06/2019 at 11:03PM

67
#95 - Larry Adames / @LarryAdames

07/02/2019 at 09:34PM

79
#96 - Jessica Kraft / @JessicaKraft19

06/26/2019 at 02:03AM

85
#97 - Lewis Marshall / @LewisAMarshall

06/16/2019 at 06:28PM

92
#98 - deedeemeen / @deedeemeen

06/09/2019 at 03:56AM