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):
30
#91 - Cristi Balan / @evilchelu

01/01/2011 at 06:36AM

30
#92 - kmymtksh / @kmymtksh

01/03/2011 at 07:58AM

30
#93 - brett / @brettyukich

09/22/2013 at 09:31PM

30
#94 - James / @Dronak

08/21/2014 at 05:20PM

31
#95 - Ilya Strukov / @i1ey

05/01/2011 at 06:39PM

31
#96 - Jason Wolf / @zephyr_wolf

11/08/2012 at 06:05PM

31
#97 - Daniel / @Daniel00288663

04/04/2017 at 07:34AM

32
#98 - Shawn Tice / @shtice

12/29/2010 at 12:59AM

32
#99 - Andrew Scala / @agscala

12/29/2010 at 07:51AM

32
#100 - Øystein Walle / @oysteinwalle

07/06/2011 at 11:28PM

33
#101 - David Wolever / @wolever

12/29/2010 at 12:16AM

33
#102 - Peter Anselmo / @peter_anselmo

12/31/2010 at 04:01AM

33
#103 - vansan / @VinceVansan

08/25/2012 at 08:00PM

33
#104 - くま55 / @kumack55

04/08/2013 at 01:25AM

34
#105 - Steven Grady / @steven807

12/29/2010 at 12:45AM

34
#106 - Olivier El Mekki / @oelmekki

12/29/2010 at 01:27AM

34
#107 - Christopher Suter / @cgs1019

12/29/2010 at 03:56AM

34
#108 - Alex Bartol / @alexbartol

05/15/2015 at 02:49AM

35
#109 - Matt Tarbit / @mtarbit

01/09/2011 at 09:50AM

35
#110 - xhtmlforum / @xhtmlforum

01/31/2011 at 08:46PM

36
#111 - Vincent Isambart / @vincentisambart

12/31/2010 at 10:58AM

36
#112 - Chenut Ludovic / @7Brwa7

04/04/2016 at 01:59PM

37
#113 - Douglas Stockwell / @dstockwell

12/29/2010 at 12:13AM

37
#114 - eolo999 / @eolo999

12/29/2010 at 01:18AM

37
#115 - Phil / @phil30075

12/29/2010 at 03:09AM

37
#116 -  Ikhsan Maulana / @ixandidu

12/31/2010 at 05:32PM

37
#117 - Francisco Dibar / @frandibar

01/10/2011 at 08:06PM

37
#118 - 無ん垢の叫び / @john_ababa

03/13/2012 at 06:30AM

38
#119 - Andrey A. Ugolnik / @andreyugolnik

01/19/2011 at 10:45PM

39
#120 - Nadja Untendiegruft / @nadjau

12/29/2010 at 12:55PM