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

Santa's naughty / nice list

Christmas is here and Santa hasn't decided who's naughty or nice yet. He's given a list of names to his programmer friend to quickly split the children into naughty and nice. Hint: There's a hidden pattern that might be familiar.

Start file
Ayden
Jayden
Linnett
Sam
Zooey
Wyn
Winter
Wynne
Madelyn
Michael
Jessica
Thomas
Olivia
Maria
Julia
Aaron
Iris
Adrian
Nathaniel
Alice
Margaret
Miranda
Oliver
Philip
Phoebe
Marcus
Arthur
Tatiana
Robin
Ophelia
End file
nice Ayden
nice Jayden
naughty Linnett
nice Sam
naughty Zooey
naughty Wyn
nice Winter
nice Wynne
naughty Madelyn
naughty Michael
nice Jessica
naughty Thomas
nice Olivia
nice Maria
naughty Julia
nice Aaron
nice Iris
naughty Adrian
nice Nathaniel
naughty Alice
naughty Margaret
nice Miranda
nice Oliver
naughty Philip
naughty Phoebe
nice Marcus
naughty Arthur
nice Tatiana
nice Robin
naughty Ophelia

View Diff

1,30c1,30
< Ayden
< Jayden
< Linnett
< Sam
< Zooey
< Wyn
< Winter
< Wynne
< Madelyn
< Michael
< Jessica
< Thomas
< Olivia
< Maria
< Julia
< Aaron
< Iris
< Adrian
< Nathaniel
< Alice
< Margaret
< Miranda
< Oliver
< Philip
< Phoebe
< Marcus
< Arthur
< Tatiana
< Robin
< Ophelia
---
> nice Ayden
> nice Jayden
> naughty Linnett
> nice Sam
> naughty Zooey
> naughty Wyn
> nice Winter
> nice Wynne
> naughty Madelyn
> naughty Michael
> nice Jessica
> naughty Thomas
> nice Olivia
> nice Maria
> naughty Julia
> nice Aaron
> nice Iris
> naughty Adrian
> nice Nathaniel
> naughty Alice
> naughty Margaret
> nice Miranda
> nice Oliver
> naughty Philip
> naughty Phoebe
> nice Marcus
> naughty Arthur
> nice Tatiana
> nice Robin
> naughty Ophelia

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 14 remaining solutions by signing in and submitting your own entry
#15 pankaj singh / @pankajsingh013 - Score: 93 - 01/08/19 @ 22:34
:%s/^/nice /gc<CR>yynynnyynnynyynyynynnyynnynyyn:<Up><Left><Left><Left><Left><BS><BS><BS>aughty<CR>nnynyynnyynynnynnynyynnyynynnyZZ

0 comments


Created by: @bennettbackward

15 active golfers, 41 entries

Leaderboard (lowest score wins):
39
#1 - John Braxler / @braxler

12/31/2018 at 09:33PM

39
#2 - Smylers / @Smylers2

01/19/2019 at 09:59PM

42
#3 - Julien Harbulot / @julienharbulot

12/27/2018 at 12:53AM

43
#4 - tweets about snakes / @theryangeary

12/26/2018 at 01:54AM

44
#5 - tPenguinLTG / @tpenguinltg

12/25/2018 at 10:40PM

44
#6 - TimMcGuire / @mcguire

12/26/2018 at 03:50PM

45
#7 - Marty Boren / @computerliker

12/27/2018 at 10:10PM

46
#8 - Slawek Ligus / @ooz_ie

12/27/2018 at 05:44AM

46
#9 - Jan Liu / @Jagsomarjan

12/29/2018 at 08:51PM

49
#10 - daniel / @daniel31464605

12/28/2018 at 07:57AM

51
#11 - Jon Krause / @jkrause314

12/25/2018 at 05:21PM

58
#12 - Sebastien Nicoud / @sebnukem

12/26/2018 at 01:43AM

58
#13 - omrisarig / @omrisarig

12/27/2018 at 08:59AM

58
#14 - Jose Villalta 👨‍💻 / @PhilosoGeekDad

12/27/2018 at 04:09PM

93
#15 - pankaj singh / @pankajsingh013

01/08/2019 at 10:34PM