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 @vimgolfer7:

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

8 active golfers, 31 entries

Solutions by @vimgolfer7:
126
#1 - vimgolfer / @vimgolfer7

10/03/2019 at 07:31AM

127
#>3 - vimgolfer / @vimgolfer7

10/03/2019 at 06:48AM

128
#>3 - vimgolfer / @vimgolfer7

10/03/2019 at 06:36AM

129
#>3 - vimgolfer / @vimgolfer7

10/02/2019 at 01:01PM

130
#>3 - vimgolfer / @vimgolfer7

10/01/2019 at 12:48AM

132
#>3 - vimgolfer / @vimgolfer7

10/01/2019 at 12:40AM

136
#>3 - vimgolfer / @vimgolfer7

10/01/2019 at 12:27AM

138
#>3 - vimgolfer / @vimgolfer7

10/01/2019 at 12:14AM

141
#>3 - vimgolfer / @vimgolfer7

09/30/2019 at 06:04AM

142
#>3 - vimgolfer / @vimgolfer7

09/30/2019 at 06:02AM

145
#>3 - vimgolfer / @vimgolfer7

09/30/2019 at 05:52AM

147
#>3 - vimgolfer / @vimgolfer7

09/30/2019 at 05:35AM

149
#>4 - vimgolfer / @vimgolfer7

09/30/2019 at 05:25AM

151
#>5 - vimgolfer / @vimgolfer7

09/30/2019 at 05:21AM

153
#>5 - vimgolfer / @vimgolfer7

09/30/2019 at 05:17AM