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):
19
#91 - Chris Shorrock / @EbinFlow

08/14/2019 at 02:24PM

20
#92 - seul / @seul15987381

06/12/2019 at 08:36AM

20
#93 - Alexey Vyskubov / @avysk

06/12/2019 at 01:48PM

20
#94 - Mat / @matpbo

06/14/2019 at 10:19PM

20
#95 - Takayuki Sato / @yukitaka1974

06/21/2019 at 02:57PM

20
#96 - Test Account / @testycc

06/29/2019 at 12:41PM

20
#97 - André Reigoto / @AndreReigoto

08/09/2019 at 03:10PM

20
#98 - Alex Emelianov / @AlexEmelianov3

11/03/2019 at 11:20PM

21
#99 - Frank / @fvbever

06/07/2019 at 07:49AM

21
#100 - albalitz / @_albalitz

06/07/2019 at 08:06AM

21
#101 - Juraj Skvarla / @Athlet

06/10/2019 at 03:28PM

21
#102 - Raphael / @Console64

06/10/2019 at 03:37PM

21
#103 - Prashanth / @Prashanth157T

06/12/2019 at 04:12AM

21
#104 - Paul Inc / @hiniol1982

06/23/2019 at 08:20AM

21
#105 - Aurel / @AurelienFebvre

06/23/2019 at 08:06PM

21
#106 - Καράτε Μόνο / @karate_mono

06/24/2019 at 12:38PM

21
#107 - Egor Fedkin / @Jet_Flynn

06/25/2019 at 07:35AM

21
#108 - Karan Gajwani / @karangb

07/12/2019 at 10:23PM

21
#109 - Ben Allan / @hellobenallan

08/19/2019 at 01:56PM

21
#110 - kevinski / @kevinsk30746831

08/22/2019 at 03:46PM

21
#111 - José / @AngelGaldamez

08/26/2019 at 12:57AM

22
#112 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 02:42PM

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

06/11/2019 at 01:06PM

22
#114 - couaber / @couaber

06/23/2019 at 07:13PM

22
#115 - Vim Golfer / @VimGolfer6

07/07/2019 at 10:45AM

22
#116 - dahara / @kuma_moooon

08/15/2019 at 03:05PM

22
#117 - sundeep routhu / @sundeep12005

08/31/2019 at 09:15AM

23
#118 - deHman89 / @danho89

06/07/2019 at 07:10AM

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

06/07/2019 at 07:06PM

23
#120 - Grzegorz Andrzejowski / @AndrzejowskiG

06/17/2019 at 01:59PM