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

0 comments


Created by: @valacar

123 active golfers, 460 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

15
#39 - Tinko Minko / @tandikula

06/06/2019 at 06:03PM

15
#40 - Saki Gw / @Sakigw

06/07/2019 at 07:07AM

15
#41 - Reportados123 / @reportados123

06/09/2019 at 12:42AM

15
#42 - Mac Goever / @MacGoever

06/12/2019 at 08:34PM

15
#43 - garry quested / @GQuested

07/04/2019 at 08:47AM

15
#44 - Chester Yap / @Chest_ErYap

07/27/2019 at 09:02PM

15
#45 - りんご / @ringo9971

08/06/2019 at 08:29AM

15
#46 - Bradley M. Small / @BradleySmall

08/10/2019 at 03:20AM

15
#47 - Adam Katz / @AdamKat01277576

08/12/2019 at 08:19AM

17
#48 - deurzen / @devrzen

06/06/2019 at 10:14AM

17
#49 - golf_throwaway / @GolfThrowaway

06/06/2019 at 12:27PM

17
#50 - Tim Dean / @Tmdean

06/06/2019 at 05:32PM

17
#51 - Zevurari / @zevurari

06/06/2019 at 08:18PM

17
#52 - Karl Rombauts / @KarlRombauts

06/07/2019 at 05:03AM

17
#53 - Clint Caudle / @ClintCaudle

07/25/2019 at 01:15AM

17
#54 - Martin Delille / @martinodelilo

08/13/2019 at 06:49PM

18
#55 - Ola / @Ola73745831

07/05/2019 at 09:51AM

18
#56 - Nick Yeow / @nickyeow

07/18/2019 at 04:39PM

18
#57 - Jonathan Browning / @yungjig90

07/30/2019 at 08:57PM

19
#58 - Ari Sweedler / @Adsweed

06/07/2019 at 12:29AM

19
#59 - Malcolm Ramsay / @malramsay64

06/07/2019 at 03:22AM

19
#60 - Am Jam / @LoneJam

06/07/2019 at 03:13PM