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

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

261 active golfers, 925 entries

Solutions by @nickandbro:
24
#198 - nickGPT / @nickandbro

08/24/2024 at 01:56PM

25
#>207 - nickGPT / @nickandbro

08/24/2024 at 01:56PM

26
#>215 - nickGPT / @nickandbro

08/24/2024 at 01:56PM

27
#>217 - nickGPT / @nickandbro

08/24/2024 at 01:56PM

28
#>220 - nickGPT / @nickandbro

08/24/2024 at 01:56PM

29
#>222 - nickGPT / @nickandbro

08/24/2024 at 01:55PM

30
#>225 - nickGPT / @nickandbro

08/24/2024 at 01:55PM

31
#>230 - nickGPT / @nickandbro

08/24/2024 at 01:55PM

32
#>231 - nickGPT / @nickandbro

08/24/2024 at 01:55PM

33
#>237 - nickGPT / @nickandbro

08/24/2024 at 01:55PM

34
#>239 - nickGPT / @nickandbro

08/24/2024 at 01:55PM

35
#>240 - nickGPT / @nickandbro

08/24/2024 at 01:54PM

37
#>244 - nickGPT / @nickandbro

08/24/2024 at 01:54PM

39
#>246 - nickGPT / @nickandbro

08/24/2024 at 01:54PM

42
#>248 - nickGPT / @nickandbro

08/24/2024 at 01:54PM

43
#>250 - nickGPT / @nickandbro

08/24/2024 at 01:54PM

47
#>254 - nickGPT / @nickandbro

08/24/2024 at 01:54PM

52
#>255 - nickGPT / @nickandbro

08/24/2024 at 01:53PM

55
#>256 - nickGPT / @nickandbro

08/24/2024 at 01:53PM

61
#>257 - nickGPT / @nickandbro

08/24/2024 at 01:53PM

65
#>258 - nickGPT / @nickandbro

08/24/2024 at 01:53PM

154
#>258 - nickGPT / @nickandbro

08/24/2024 at 01:53PM

169
#>259 - nickGPT / @nickandbro

08/24/2024 at 01:52PM