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

0 comments


Created by: @valacar

169 active golfers, 740 entries

Leaderboard (lowest score wins):
22
#121 - Vim Golfer / @VimGolfer6

07/07/2019 at 10:45AM

22
#122 - dahara / @kuma_moooon

08/15/2019 at 03:05PM

22
#123 - sundeep routhu / @sundeep12005

08/31/2019 at 09:15AM

23
#124 - deHman89 / @danho89

06/07/2019 at 07:10AM

23
#125 - Dr. Rev. J. "Paranoid Android" Kirchartz / @JKirchartz

06/07/2019 at 07:06PM

23
#126 - Grzegorz Andrzejowski / @AndrzejowskiG

06/17/2019 at 01:59PM

23
#127 - Joseph A Shalabi / @JosephShalabi

06/27/2019 at 12:45AM

23
#128 - aurelian ardeleanu / @inquarto

07/11/2019 at 07:48AM

23
#129 - Crystal L / @Cartsly

07/13/2019 at 08:06PM

23
#130 - Ariel Miculas / @ArielMiculas

09/18/2019 at 11:24PM

23
#131 - Jonathan Medwig / @jmedwig

10/28/2019 at 01:18PM

23
#132 - vicver09 / @vicver091

10/28/2019 at 04:52PM

24
#133 - Clarence Cheong / @IBrightStudioI

06/08/2019 at 06:24AM

25
#134 - Will Durney / @WillDurney

06/06/2019 at 08:28PM

25
#135 - Mauricio Ariza / @_hell_spawn

06/11/2019 at 02:19PM

25
#136 - Laurent Atlan / @laurentatlan1

06/24/2019 at 04:47PM

25
#137 - vim_ninja / @NinjaVim

08/25/2019 at 11:30PM

26
#138 - overlookedhashmap / @overlookedhash1

06/07/2019 at 10:33PM

26
#139 - Hans-Wilhelm / @hanswilw

06/21/2019 at 01:04PM

27
#140 - Matthew Krafczyk / @int_matt

06/06/2019 at 09:45PM

27
#141 - Josh Braun / @bbraunj

06/29/2019 at 03:25PM

27
#142 - Березницкий Вадим / @vad1mster

07/06/2019 at 05:43PM

27
#143 - James Raubenheimer / @jamzrob

07/18/2019 at 11:25PM

28
#144 - *9vkZ{YP_XV[XCbNdmnT / @9vkzX

06/08/2019 at 11:59AM

28
#145 - Jess / @Jess74311450

06/11/2019 at 01:14PM

28
#146 - Paul Yates / @PYates77

06/17/2019 at 06:58PM

28
#147 - Floyd Gantt / @fgantt

06/27/2019 at 06:31PM

28
#148 - Test Name / @TestNam40177593

07/28/2019 at 11:49AM

28
#149 - Bob Ren / @bobrenjc93

07/29/2019 at 03:58PM

28
#150 - Aaron / @_Lordofthevoid_

11/23/2019 at 11:35AM