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

0 comments


Created by: @valacar

71 active golfers, 232 entries

Leaderboard (lowest score wins):
17
#31 - Karl Rombauts / @KarlRombauts

06/07/2019 at 05:03AM

19
#32 - Ari Sweedler / @Adsweed

06/07/2019 at 12:29AM

19
#33 - Malcolm Ramsay / @malramsay64

06/07/2019 at 03:22AM

19
#34 - Am Jam / @LoneJam

06/07/2019 at 03:13PM

19
#35 - Derrick Gill / @DerrickGill15

06/08/2019 at 02:20AM

19
#36 - Altafen_ / @Altafen1

06/14/2019 at 07:17AM

20
#37 - seul / @seul15987381

06/12/2019 at 08:36AM

20
#38 - Alexey Vyskubov / @avysk

06/12/2019 at 01:48PM

20
#39 - Mat / @matpbo

06/14/2019 at 10:19PM

20
#40 - Takayuki Sato / @yukitaka1974

06/21/2019 at 02:57PM

21
#41 - Frank / @fvbever

06/07/2019 at 07:49AM

21
#42 - albalitz / @_albalitz

06/07/2019 at 08:06AM

21
#43 - Juraj Skvarla / @Athlet

06/10/2019 at 03:28PM

21
#44 - Raphael / @Console64

06/10/2019 at 03:37PM

21
#45 - Prashanth / @Prashanth157T

06/12/2019 at 04:12AM

21
#46 - Paul Inc / @hiniol1982

06/23/2019 at 08:20AM

21
#47 - Aurel / @AurelienFebvre

06/23/2019 at 08:06PM

22
#48 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 02:42PM

22
#49 - Just...That / @I_am_JustThat

06/11/2019 at 01:06PM

22
#50 - couaber / @couaber

06/23/2019 at 07:13PM

23
#51 - deHman89 / @danho89

06/07/2019 at 07:10AM

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

06/07/2019 at 07:06PM

23
#53 - Grzegorz Andrzejowski / @AndrzejowskiG

06/17/2019 at 01:59PM

24
#54 - Clarence Cheong / @IBrightStudioI

06/08/2019 at 06:24AM

25
#55 - Will Durney / @WillDurney

06/06/2019 at 08:28PM

25
#56 - Mauricio Ariza / @_hell_spawn

06/11/2019 at 02:19PM

26
#57 - overlookedhashmap / @overlookedhash1

06/07/2019 at 10:33PM

26
#58 - Hans-Wilhelm / @hanswilw

06/21/2019 at 01:04PM

27
#59 - Matthew Krafczyk / @int_matt

06/06/2019 at 09:45PM

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

06/08/2019 at 11:59AM