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 140 remaining solutions by signing in and submitting your own entry
#141 deedeemeen / @deedeemeen - Score: 92 - 06/09/19 @ 03:56
13GVjjjdggpuOjk<BS><BS><Esc>pkddjjjjjjjjjVjjdggPjjjjjjjjjjjddkkkkkkkkkpjjjjjjjjjjjjjjjjVGdggjjjjjjjpZZ

0 comments


Created by: @valacar

141 active golfers, 545 entries

Leaderboard (lowest score wins):
28
#121 - Paul Yates / @PYates77

06/17/2019 at 06:58PM

28
#122 - Floyd Gantt / @fgantt

06/27/2019 at 06:31PM

28
#123 - Test Name / @TestNam40177593

07/28/2019 at 11:49AM

28
#124 - Bob Ren / @bobrenjc93

07/29/2019 at 03:58PM

29
#125 - Adam Wilson / @adamlemurwilson

06/24/2019 at 08:10PM

30
#126 - dtjong / @dtjong2

06/07/2019 at 05:26AM

30
#127 - valeryan deux / @DeuxValeryan

06/07/2019 at 12:17PM

30
#128 - duyanh.y4n.pham / @PhamY4n

06/10/2019 at 05:15PM

30
#129 - Chris G / @AboutThatThing

06/12/2019 at 08:54AM

30
#130 - Phoon / @justflashhim

07/30/2019 at 12:32AM

30
#131 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 03:13PM

32
#132 - pommevilla / @pawlrus

06/07/2019 at 09:49AM

32
#133 - Mike Clark / @mikeclark729

06/11/2019 at 02:25PM

32
#134 - Emil Braserud / @Erdustiggen

06/24/2019 at 01:20PM

32
#135 - Ralph Callaway / @RalphAtCCC

09/09/2019 at 11:37PM

33
#136 - grantopher orange / @grantopher

07/22/2019 at 11:40PM

34
#137 - David Nash / @david_nash

06/06/2019 at 11:03PM

67
#138 - Larry Adames / @LarryAdames

07/02/2019 at 09:34PM

79
#139 - Jessica Kraft / @JessicaKraft19

06/26/2019 at 02:03AM

85
#140 - Lewis Marshall / @LewisAMarshall

06/16/2019 at 06:28PM

92
#141 - deedeemeen / @deedeemeen

06/09/2019 at 03:56AM