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

0 comments


Created by: @valacar

147 active golfers, 597 entries

Leaderboard (lowest score wins):
14
#31 - taka / @takaoutputblog

07/20/2019 at 01:31PM

14
#32 - Joe Fahnestock🌵 / @Joecupojoe

07/23/2019 at 01:04AM

14
#33 - Joel Elkins / @dice_tea

08/02/2019 at 05:11PM

14
#34 - Ron Holt / @ron_holt

08/03/2019 at 02:32AM

14
#35 - Daniel Steinberg / @dstein64

08/04/2019 at 06:43PM

14
#36 - sooqua / @sooqua

08/07/2019 at 05:13PM

14
#37 - XiaoXiaoLui / @XiaoXiaoLui1

08/15/2019 at 06:45AM

14
#38 - Adam Hartz / @awareofnow

08/18/2019 at 03:54AM

14
#39 - Martin Delille / @martinodelilo

08/19/2019 at 02:28PM

14
#40 - Dax / @zacoxi

08/20/2019 at 06:41AM

14
#41 - Wistan Chou / @wisty97

08/21/2019 at 08:43PM

14
#42 - David Johnston / @nuts4nuts4nuts

08/25/2019 at 04:32AM

14
#43 - blub / @agorilladriving

08/28/2019 at 11:38PM

14
#44 - Andrew Blokzyl / @linuxKd

08/30/2019 at 03:18PM

14
#45 - Madelyn Freed / @EcoBummer

09/04/2019 at 06:24PM

14
#46 - Zach Ingbretsen / @ZIngbretsen

09/07/2019 at 06:29PM

14
#47 - Viktor Styrud / @Visklol

09/24/2019 at 02:50PM

14
#48 - vimgolfer / @vimgolfer7

09/28/2019 at 03:09PM

14
#49 - Jonathan Eidsness / @jonathaneidsnes

10/09/2019 at 04:53PM

14
#50 - Mario Olofo / @mario_olofo

10/17/2019 at 04:59AM

14
#51 - leo / @leo28356948

10/18/2019 at 06:01AM

14
#52 - Tamás Kárándi / @tkarandi

10/19/2019 at 08:52PM

15
#53 - Tinko Minko / @tandikula

06/06/2019 at 06:03PM

15
#54 - Saki Gw / @Sakigw

06/07/2019 at 07:07AM

15
#55 - Reportados123 / @reportados123

06/09/2019 at 12:42AM

15
#56 - Mac Goever / @MacGoever

06/12/2019 at 08:34PM

15
#57 - garry quested / @GQuested

07/04/2019 at 08:47AM

15
#58 - Chester Yap / @Chest_ErYap

07/27/2019 at 09:02PM

15
#59 - りんご / @ringo9971

08/06/2019 at 08:29AM

15
#60 - Bradley M. Small / @BradleySmall

08/10/2019 at 03:20AM