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 5c1db460c5949f000990a2f1

My cafe needs a new menu

Help! My cafe needs a new menu and I've only got this plain-text file from the kitchen. In order to get it printed, I need to transform it into a markdown file with; headings for each type of item, prices on each menu item, dietary options and a key down the bottom.

Start file
mocha drink 4
tea drink 3
iced-tea drink 5
iced-mocha drink 5
eggs-on-toast breakfast gluten-free-option,vegetarian 14
bacon-and-eggs breakfast 16
vegan-deluxe breakfast gluten-free-option,vegetarian 14
meaty-deluxe breakfast 20
big-burger lunch gluten-free-option,vegetarian-option 14
steak-and-chips lunch 22
End file
# Drink
- Mocha - $4
- Tea - $3
- Iced Tea - $5
- Iced Mocha - $5

# Breakfast
- Eggs On Toast (GFO,V) - $14
- Bacon And Eggs - $16
- Vegan Deluxe (GFO,V) - $14
- Meaty Deluxe - $20

# Lunch
- Big Burger (GFO,VO) - $14
- Steak And Chips - $22

> *GFO = Gluten Free Option, V = Vegetarian, VO = Vegetarian Option

View Diff

1,10c1,17
< mocha drink 4
< tea drink 3
< iced-tea drink 5
< iced-mocha drink 5
< eggs-on-toast breakfast gluten-free-option,vegetarian 14
< bacon-and-eggs breakfast 16
< vegan-deluxe breakfast gluten-free-option,vegetarian 14
< meaty-deluxe breakfast 20
< big-burger lunch gluten-free-option,vegetarian-option 14
< steak-and-chips lunch 22
---
> # Drink
> - Mocha - $4
> - Tea - $3
> - Iced Tea - $5
> - Iced Mocha - $5
> 
> # Breakfast
> - Eggs On Toast (GFO,V) - $14
> - Bacon And Eggs - $16
> - Vegan Deluxe (GFO,V) - $14
> - Meaty Deluxe - $20
> 
> # Lunch
> - Big Burger (GFO,VO) - $14
> - Steak And Chips - $22
> 
> > *GFO = Gluten Free Option, V = Vegetarian, VO = Vegetarian Option

Solutions by @filbranden:

Unlock 4 remaining solutions by signing in and submitting your own entry
Created by: @bennettbackward

6 active golfers, 23 entries

Solutions by @filbranden:
151
#3 - Filipe Brandenburger / @filbranden

07/08/2019 at 04:57AM

155
#>3 - Filipe Brandenburger / @filbranden

07/08/2019 at 04:50AM

156
#>3 - Filipe Brandenburger / @filbranden

07/08/2019 at 04:42AM

157
#>5 - Filipe Brandenburger / @filbranden

07/08/2019 at 03:24AM