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 6030936d3f9325000c6aa0aa

CSV to MD format

To convert a CSV list to Markdown list

Start file
apple,fruit
onion,vegetable
cherry,fruit
garlic,vegetable
ginger,vegetable
rose,flower
orange,fruit
jasmine,flower
End file
- flower
        - jasmine
        - rose
- fruit
        - orange
        - cherry
        - apple
- vegetable
        - ginger
        - garlic
        - onion

View Diff

1,8c1,11
< apple,fruit
< onion,vegetable
< cherry,fruit
< garlic,vegetable
< ginger,vegetable
< rose,flower
< orange,fruit
< jasmine,flower
---
> - flower
>         - jasmine
>         - rose
> - fruit
>         - orange
>         - cherry
>         - apple
> - vegetable
>         - ginger
>         - garlic
>         - onion

Solutions by @maxtong1987:

Unlock 13 remaining solutions by signing in and submitting your own entry
Created by: @canabady

89 active golfers, 381 entries

Solutions by @maxtong1987:
36
#4 - maxtong / @maxtong1987

03/13/2021 at 04:01AM

40
#>17 - maxtong / @maxtong1987

03/13/2021 at 03:28AM

41
#>30 - maxtong / @maxtong1987

03/13/2021 at 03:26AM

42
#>30 - maxtong / @maxtong1987

03/12/2021 at 09:00AM

43
#>30 - maxtong / @maxtong1987

03/12/2021 at 08:56AM

43
#>30 - maxtong / @maxtong1987

03/12/2021 at 09:38AM

43
#>30 - maxtong / @maxtong1987

03/12/2021 at 09:42AM

43
#>30 - maxtong / @maxtong1987

03/12/2021 at 10:02AM

43
#>30 - maxtong / @maxtong1987

03/13/2021 at 02:02AM

45
#>30 - maxtong / @maxtong1987

03/13/2021 at 03:01AM

50
#>30 - maxtong / @maxtong1987

03/12/2021 at 08:35AM

54
#>32 - maxtong / @maxtong1987

03/12/2021 at 09:56AM

59
#>32 - maxtong / @maxtong1987

03/12/2021 at 08:27AM