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

0 comments


Created by: @valacar

162 active golfers, 697 entries

Leaderboard (lowest score wins):
15
#61 - Mac Goever / @MacGoever

06/12/2019 at 08:34PM

15
#62 - garry quested / @GQuested

07/04/2019 at 08:47AM

15
#63 - Chester Yap / @Chest_ErYap

07/27/2019 at 09:02PM

15
#64 - りんご / @ringo9971

08/06/2019 at 08:29AM

15
#65 - Bradley M. Small / @BradleySmall

08/10/2019 at 03:20AM

15
#66 - Adam Katz / @AdamKat01277576

08/12/2019 at 08:19AM

15
#67 - Marco Mannucci / @markomannux

08/23/2019 at 09:43PM

15
#68 - Abner jr / @Abnerjr19

09/13/2019 at 01:39PM

15
#69 - Gregory Furter / @gfurter

10/29/2019 at 02:33PM

15
#70 - Lory / @Lory46845742

10/31/2019 at 03:56PM

15
#71 - Chris Covert / @covertcj

11/07/2019 at 09:25PM

15
#72 - mogitate / @mutemeat

11/16/2019 at 09:58AM

15
#73 - damien / @GreatTestyTest

11/17/2019 at 04:27PM

16
#74 - Baine Wedlock / @BaineWedlock

09/12/2019 at 08:39AM

17
#75 - deurzen / @devrzen

06/06/2019 at 10:14AM

17
#76 - golf_throwaway / @GolfThrowaway

06/06/2019 at 12:27PM

17
#77 - Tim Dean / @Tmdean

06/06/2019 at 05:32PM

17
#78 - Zevurari / @zevurari

06/06/2019 at 08:18PM

17
#79 - Karl Rombauts / @KarlRombauts

06/07/2019 at 05:03AM

17
#80 - Clint Caudle / @ClintCaudle

07/25/2019 at 01:15AM

18
#81 - Ola / @Ola73745831

07/05/2019 at 09:51AM

18
#82 - Nick Yeow / @nickyeow

07/18/2019 at 04:39PM

18
#83 - Jonathan Browning / @yungjig90

07/30/2019 at 08:57PM

18
#84 - ciela / @lededex

08/28/2019 at 07:36PM

19
#85 - Ari Sweedler / @Adsweed

06/07/2019 at 12:29AM

19
#86 - Malcolm Ramsay / @malramsay64

06/07/2019 at 03:22AM

19
#87 - Am Jam / @LoneJam

06/07/2019 at 03:13PM

19
#88 - Derrick Gill / @DerrickGill15

06/08/2019 at 02:20AM

19
#89 - Altafen_ / @Altafen1

06/14/2019 at 07:17AM

19
#90 - ixf / @ixfdv

07/05/2019 at 06:41PM