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

0 comments


Created by: @valacar

141 active golfers, 545 entries

Leaderboard (lowest score wins):
17
#61 - Tim Dean / @Tmdean

06/06/2019 at 05:32PM

17
#62 - Zevurari / @zevurari

06/06/2019 at 08:18PM

17
#63 - Karl Rombauts / @KarlRombauts

06/07/2019 at 05:03AM

17
#64 - Clint Caudle / @ClintCaudle

07/25/2019 at 01:15AM

18
#65 - Ola / @Ola73745831

07/05/2019 at 09:51AM

18
#66 - Nick Yeow / @nickyeow

07/18/2019 at 04:39PM

18
#67 - Jonathan Browning / @yungjig90

07/30/2019 at 08:57PM

18
#68 - ciela / @lededex

08/28/2019 at 07:36PM

19
#69 - Ari Sweedler / @Adsweed

06/07/2019 at 12:29AM

19
#70 - Malcolm Ramsay / @malramsay64

06/07/2019 at 03:22AM

19
#71 - Am Jam / @LoneJam

06/07/2019 at 03:13PM

19
#72 - Derrick Gill / @DerrickGill15

06/08/2019 at 02:20AM

19
#73 - Altafen_ / @Altafen1

06/14/2019 at 07:17AM

19
#74 - ixf / @ixfdv

07/05/2019 at 06:41PM

19
#75 - Chris Shorrock / @EbinFlow

08/14/2019 at 02:24PM

20
#76 - seul / @seul15987381

06/12/2019 at 08:36AM

20
#77 - Alexey Vyskubov / @avysk

06/12/2019 at 01:48PM

20
#78 - Mat / @matpbo

06/14/2019 at 10:19PM

20
#79 - Takayuki Sato / @yukitaka1974

06/21/2019 at 02:57PM

20
#80 - Test Account / @testycc

06/29/2019 at 12:41PM

20
#81 - André Reigoto / @AndreReigoto

08/09/2019 at 03:10PM

21
#82 - Frank / @fvbever

06/07/2019 at 07:49AM

21
#83 - albalitz / @_albalitz

06/07/2019 at 08:06AM

21
#84 - Juraj Skvarla / @Athlet

06/10/2019 at 03:28PM

21
#85 - Raphael / @Console64

06/10/2019 at 03:37PM

21
#86 - Prashanth / @Prashanth157T

06/12/2019 at 04:12AM

21
#87 - Paul Inc / @hiniol1982

06/23/2019 at 08:20AM

21
#88 - Aurel / @AurelienFebvre

06/23/2019 at 08:06PM

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

06/24/2019 at 12:38PM

21
#90 - Egor Fedkin / @Jet_Flynn

06/25/2019 at 07:35AM