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 55f9720b4a665c2acf0008c8

Lower cased and dashed strings

As I have to generate big fixtures files, I wanted to find a way to format input data the way described by start and end files. Especially the lower-cased-and-dashed ids Not so good to find a pure Vim way, that's why I submit this challenge ;)

Start file
Lôrem Ipsum
Dolor.eros
Auctor: eros (elémentum)
Tincïdunt, âc
End file
lorem-ipsum:
    name
: "Lôrem Ipsum"
dolor
-eros:
    name
: "Dolor.eros"
auctor
-eros-elementum:
    name
: "Auctor: eros (elémentum)"
tincidunt
-ac:
    name
: "Tincïdunt, âc"

View Diff

1,4c1,8
< Lôrem Ipsum
< Dolor.eros
< Auctor: eros (elémentum)
< Tincïdunt, âc
---
> lorem-ipsum:
>     name: "Lôrem Ipsum"
> dolor-eros:
>     name: "Dolor.eros"
> auctor-eros-elementum:
>     name: "Auctor: eros (elémentum)"
> tincidunt-ac:
>     name: "Tincïdunt, âc"

Solutions by @Smylers2:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @tophsic

20 active golfers, 49 entries

Solutions by @Smylers2:
61
#5 - "Smylers" / @Smylers2

09/17/2015 at 09:45PM

63
#>7 - "Smylers" / @Smylers2

09/17/2015 at 04:03PM

65
#>8 - "Smylers" / @Smylers2

09/17/2015 at 01:13PM

67
#>8 - "Smylers" / @Smylers2

09/17/2015 at 01:05PM

93
#>14 - "Smylers" / @Smylers2

09/16/2015 at 03:14PM

101
#>16 - "Smylers" / @Smylers2

09/16/2015 at 03:09PM

110
#>20 - "Smylers" / @Smylers2

09/16/2015 at 03:05PM