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 4d1a790fb8cb3409320001a8

Reformat most common surnames

Reformat copy-pasted table into a list of the most common surnames

Start file
Surname  	Approx Number  	% Frequency  	Rank  
SMITH	 2,501,922	1.006	1
JOHNSON	 2,014,470	0.81	2
WILLIAMS	 1,738,413	0.699	3
JONES	 1,544,427	0.621	4
BROWN	 1,544,427	0.621	5
DAVIS	 1,193,760	0.48	6
MILLER	 1,054,488	0.424	7
WILSON	 843,093	0.339	8
MOORE	 775,944	0.312	9
TAYLOR	 773,457	0.311	10
End file
1. Smith
2. Johnson
3. Williams
4. Jones
5. Brown
6. Davis
7. Miller
8. Wilson
9. Moore
10. Taylor

View Diff

1,11c1,10
< Surname  	Approx Number  	% Frequency  	Rank  
< SMITH	 2,501,922	1.006	1
< JOHNSON	 2,014,470	0.81	2
< WILLIAMS	 1,738,413	0.699	3
< JONES	 1,544,427	0.621	4
< BROWN	 1,544,427	0.621	5
< DAVIS	 1,193,760	0.48	6
< MILLER	 1,054,488	0.424	7
< WILSON	 843,093	0.339	8
< MOORE	 775,944	0.312	9
< TAYLOR	 773,457	0.311	10
---
> 1. Smith
> 2. Johnson
> 3. Williams
> 4. Jones
> 5. Brown
> 6. Davis
> 7. Miller
> 8. Wilson
> 9. Moore
> 10. Taylor

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 163 remaining solutions by signing in and submitting your own entry
#164 Mike Cooper / @mythmon - Score: 193 - 12/29/10 @ 23:38
dd:%s/\(.*\)\t.(<BS>*\t.*\t\(.*\)$/\2. \1/g<CR>Vkkkkkkkkkkkk:%s/[<BS>\([A-Z]\)\(.*\)/\1\L\2/<CR>:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS><BS><BS><BS><CR>:wq<CR>

0 comments


Created by: @lionelyoung

164 active golfers, 520 entries

Leaderboard (lowest score wins):
39
#121 - Marian Schubert / @MarianSchubert

12/29/2010 at 12:59PM

39
#122 - Brad / @bjjwillis

12/29/2010 at 10:15PM

39
#123 - Behnam Esfahbod / @zwnj

12/31/2010 at 02:50PM

39
#124 - mightyfoo / @mightyfoo

05/25/2011 at 03:24PM

39
#125 - Kristopher Urie / @kristopherurie

02/13/2012 at 02:54AM

39
#126 - Nico Gevers / @gevious_

05/08/2016 at 07:57PM

40
#127 - Ben C / @cben

12/29/2010 at 05:11AM

40
#128 - Dan Callahan / @callahad

12/29/2010 at 08:23AM

40
#129 - Akira Matsuda / @a_matsuda

12/30/2010 at 02:56PM

40
#130 - Dan Oneata / @DanOneata

08/11/2012 at 10:37AM

41
#131 - Dhruva Sagar / @dhruvasagar

12/29/2010 at 01:03AM

41
#132 - Oliver Christ / @0liverChrist

10/05/2013 at 09:46PM

41
#133 - ltn614 / @ltn614

09/28/2015 at 10:52AM

42
#134 - nicolas bo / @thevegeta

11/09/2011 at 01:52PM

42
#135 - Ben Hill / @KaizenSoze70

10/17/2017 at 06:39PM

43
#136 - Tom Adams / @holizz

12/29/2010 at 01:00AM

43
#137 - Skúli Jóhannsson / @skulibj

06/28/2015 at 08:17PM

44
#138 - Dezső Zoltán / @zakiazigazi

01/22/2011 at 08:18AM

44
#139 - Pedro Franceschi / @pedroh96

02/06/2013 at 02:15AM

46
#140 - lionel young / @lionelyoung

12/29/2010 at 12:18AM

46
#141 - Ben Lenarts / @benlenarts

12/29/2010 at 03:36PM

47
#142 - Peter Krenn / @peterkrenn

12/29/2010 at 01:17AM

47
#143 - Mike Plotz / @antisuji

12/29/2010 at 03:04AM

47
#144 - Soliman Sylvain / @sylvain_soliman

12/29/2010 at 05:46PM

47
#145 - ise0615 / @ise0615

05/04/2012 at 05:32PM

49
#146 - Simon Brown / @caelyxsec

12/29/2010 at 06:38AM

49
#147 - Lasse Højgaard / @lhojgaard

12/29/2010 at 01:17PM

49
#148 - Felipe Jaramillo F / @mrfelipe

04/16/2014 at 03:33AM

50
#149 - Przemysław Pawełczyk / @przemoc86

12/30/2010 at 10:52PM

51
#150 - Dave / @zzdave13

07/15/2011 at 01:31PM