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

0 comments


Created by: @valacar

187 active golfers, 821 entries

Leaderboard (lowest score wins):
14
#61 - Dan Kilman / @dan_kilman

12/19/2019 at 07:05PM

14
#62 - Delon / @delonleonard

12/27/2019 at 11:35AM

14
#63 - Francesco Minnocci / @fminnocci

12/28/2019 at 02:38PM

14
#64 - mowglian / @mowglian

01/11/2020 at 10:08PM

14
#65 - howanto / @ho_wan_

02/21/2020 at 12:46AM

15
#66 - Tinko Minko / @tandikula

06/06/2019 at 06:03PM

15
#67 - Saki Gw / @Sakigw

06/07/2019 at 07:07AM

15
#68 - Reportados123 / @reportados123

06/09/2019 at 12:42AM

15
#69 - Mac Goever / @MacGoever

06/12/2019 at 08:34PM

15
#70 - garry quested / @GQuested

07/04/2019 at 08:47AM

15
#71 - Chester Yap / @Chest_ErYap

07/27/2019 at 09:02PM

15
#72 - りんご / @ringo9971

08/06/2019 at 08:29AM

15
#73 - Bradley M. Small / @BradleySmall

08/10/2019 at 03:20AM

15
#74 - Adam Katz / @AdamKat01277576

08/12/2019 at 08:19AM

15
#75 - Marco Mannucci / @markomannux

08/23/2019 at 09:43PM

15
#76 - Abner jr / @Abnerjr19

09/13/2019 at 01:39PM

15
#77 - Gregory Furter / @gfurter

10/29/2019 at 02:33PM

15
#78 - Lory / @Lory46845742

10/31/2019 at 03:56PM

15
#79 - Chris Covert / @covertcj

11/07/2019 at 09:25PM

15
#80 - mogitate / @mutemeat

11/16/2019 at 09:58AM

15
#81 - damien / @GreatTestyTest

11/17/2019 at 04:27PM

15
#82 - Jean-Francois Parent / @hacker_pyrat

02/13/2020 at 12:38AM

15
#83 - KingYames / @JamesZeHunter

02/25/2020 at 12:56PM

16
#84 - Baine Wedlock / @BaineWedlock

09/12/2019 at 08:39AM

17
#85 - deurzen / @devrzen

06/06/2019 at 10:14AM

17
#86 - golf_throwaway / @GolfThrowaway

06/06/2019 at 12:27PM

17
#87 - Tim Dean / @Tmdean

06/06/2019 at 05:32PM

17
#88 - Zevurari / @zevurari

06/06/2019 at 08:18PM

17
#89 - Karl Rombauts / @KarlRombauts

06/07/2019 at 05:03AM

17
#90 - Clint Caudle / @ClintCaudle

07/25/2019 at 01:15AM