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 25 remaining solutions by signing in and submitting your own entry
#26 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

26 active golfers, 90 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

39
#3 - Turkey Man / @lvturkeyman

02/25/2019 at 08:57AM

39
#4 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 04:09PM

39
#5 - Miłosz Łakomy / @foobar01123

02/25/2020 at 02:41PM

39
#6 - Luoyb / @Luoyb

11/03/2023 at 01:35AM

39
#7 - Peppa Pig / @PeppaPigSg

06/25/2024 at 05:19AM

39
#8 - nickGPT / @nickandbro

08/25/2024 at 02:53AM

42
#9 - Julien Harbulot / @julienharbulot

12/27/2018 at 12:53AM

42
#10 - Jean George / @JeanGeo20504212

01/05/2022 at 09:41PM

43
#11 - rye bread / @theryangeary

12/26/2018 at 01:54AM

43
#12 - majo senf / @majo_senf

06/25/2019 at 03:24PM

44
#13 - tPenguinLTG / @tpenguinltg

12/25/2018 at 10:40PM

44
#14 - TimMcGuire / @mcguire

12/26/2018 at 03:50PM

45
#15 - Marty Boren / @beanmaximalist

12/27/2018 at 10:10PM

46
#16 - Slawek Ligus / @ooz_ie

12/27/2018 at 05:44AM

46
#17 - Jan Liu / @Jagsomarjan

12/29/2018 at 08:51PM

49
#18 - daniel / @daniel31464605

12/28/2018 at 07:57AM

51
#19 - Jon Krause / @jkrause314

12/25/2018 at 05:21PM

57
#20 - abgalphabet / @abgalphabet

01/25/2019 at 02:17PM

57
#21 - Mateen Ulhaq / @sicariusnoctis

02/13/2019 at 07:14AM

57
#22 - albalitz / @_albalitz

06/14/2019 at 12:38PM

58
#23 - Sebastien Nicoud / @sebnukem

12/26/2018 at 01:43AM

58
#24 - omrisarig / @omrisarig

12/27/2018 at 08:59AM

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

12/27/2018 at 04:09PM

93
#26 - pankaj singh / @pankajsingh013

01/08/2019 at 10:34PM