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

Hogwarts Email Sorting

Given a list of emails, get the students full name and their associated house.

Start file
james.potter@gryffindor.hogwarts.edu
sirius.black@gryffindor.hogwarts.edu
lily.potter@gryffindor.hogwarts.edu
draco.malfoy@slytherin.hogwarts.edu
harry.potter@gryffindor.hogwarts.edu
susan.bones@hufflepuff.hogwarts.edu
luna.lovegood@ravenclaw.hogwarts.edu
pansy.parkinson@slytherin.hogwarts.edu
cedric.diggory@hufflepuff.hogwarts.edu
cho.chang@hufflepuff.hogwarts.edu
End file
James Potter Gryffindor
Sirius Black Gryffindor
Lily Potter Gryffindor
Draco Malfoy Slytherin
Harry Potter Gryffindor
Susan Bones Hufflepuff
Luna Lovegood Ravenclaw
Pansy Parkinson Slytherin
Cedric Diggory Hufflepuff
Cho Chang Hufflepuff

View Diff

1,10c1,10
< james.potter@gryffindor.hogwarts.edu
< sirius.black@gryffindor.hogwarts.edu
< lily.potter@gryffindor.hogwarts.edu
< draco.malfoy@slytherin.hogwarts.edu
< harry.potter@gryffindor.hogwarts.edu
< susan.bones@hufflepuff.hogwarts.edu
< luna.lovegood@ravenclaw.hogwarts.edu
< pansy.parkinson@slytherin.hogwarts.edu
< cedric.diggory@hufflepuff.hogwarts.edu
< cho.chang@hufflepuff.hogwarts.edu
---
> James Potter Gryffindor
> Sirius Black Gryffindor
> Lily Potter Gryffindor
> Draco Malfoy Slytherin
> Harry Potter Gryffindor
> Susan Bones Hufflepuff
> Luna Lovegood Ravenclaw
> Pansy Parkinson Slytherin
> Cedric Diggory Hufflepuff
> Cho Chang Hufflepuff

Solutions by @otfsenter:

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

262 active golfers, 928 entries

Solutions by @otfsenter:
21
#86 - otfsenter / @otfsenter

06/06/2020 at 11:15AM

22
#>150 - otfsenter / @otfsenter

06/06/2020 at 11:12AM

23
#>182 - otfsenter / @otfsenter

06/06/2020 at 11:11AM

24
#>193 - otfsenter / @otfsenter

06/06/2020 at 11:10AM

25
#>207 - otfsenter / @otfsenter

06/06/2020 at 11:08AM

28
#>219 - otfsenter / @otfsenter

06/06/2020 at 11:08AM

29
#>222 - otfsenter / @otfsenter

06/06/2020 at 11:07AM

30
#>224 - otfsenter / @otfsenter

06/06/2020 at 11:06AM

31
#>230 - otfsenter / @otfsenter

06/06/2020 at 11:03AM

31
#>230 - otfsenter / @otfsenter

06/06/2020 at 11:05AM

32
#>231 - otfsenter / @otfsenter

06/06/2020 at 11:02AM

34
#>239 - otfsenter / @otfsenter

06/06/2020 at 11:01AM

36
#>241 - otfsenter / @otfsenter

06/06/2020 at 11:00AM

39
#>247 - otfsenter / @otfsenter

06/06/2020 at 10:57AM

63
#>258 - otfsenter / @otfsenter

06/06/2020 at 10:57AM