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 218 remaining solutions by signing in and submitting your own entry
#219 Martin Lillebo / @martinlillebo - Score: 295 - 07/11/25 @ 10:28
ddqqelDjq:@q<CR>i@<BS><Esc>: 2<BS><BS><BS>:@q<CR>qqqqeelDqj:@e<CR>elDjjkhlDlkjjDulDkkjjjlDkjjllDjlDjDjllD:1<CR>VGuuVuuVUgu$u~~<Left>~<Left><Left>~<Left>~0Vu~<Down><Left>qqVu~qj0@@<Left><Left><Left><Left><Left><Left><Left>@qj<Left>.<Down><Left>.uu<Up><Down>..uu<Up>u.<Left>@q<Down><Left>.<Left>@@<Down><Left>.<Left>@@<Down><Left><A-><S-Down><A-><S-Down><A-><S-Up><A-><S-Up><S-Down><S-Down><S-Up><S-Up><Up><Up><Up><Down>@q<Down><Left>@q<Down><Left>@q<Down><Left>    <Left><Left><Left><Left>@q<Down><Left>@q<Left><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>qqI1. <Esc><Down><Left><Left>i2. <Down><Left><Esc><Left>i3. <Down><Left><Left><Left>4. <Down><Left><Left><Left>5. <Esc><Down>I6. <Esc><Down><Left>I7. <Esc><Down>I8. <Esc><Down>I9. <Esc><Down><Left>I10. <Esc>:w<CR>:wq<CR>

0 comments


Created by: @lionelyoung

219 active golfers, 757 entries

Leaderboard (lowest score wins):
29
#121 - RockerZZY / @rocker_zzy

06/29/2020 at 02:30AM

29
#122 - POSIX / @po6ix

01/31/2022 at 05:14PM

29
#123 - Sergii Pidgornyi / @spodgorn

02/14/2025 at 01:04AM

30
#124 - Matthew Draper / @_matthewd

01/01/2011 at 04:33AM

30
#125 - Cristi Balan / @evilchelu

01/01/2011 at 06:36AM

30
#126 - kmymtksh / @kmymtksh

01/03/2011 at 07:58AM

30
#127 - brett / @brettyukich

09/22/2013 at 09:31PM

30
#128 - James / @Dronak

08/21/2014 at 05:20PM

31
#129 - Ilya Strukov / @i1ey

05/01/2011 at 06:39PM

31
#130 - Jason Wolf / @zephyr_wolf

11/08/2012 at 06:05PM

31
#131 - Daniel / @Daniel00288663

04/04/2017 at 07:34AM

31
#132 - Michael Meixner / @meixner62

01/24/2020 at 12:50PM

32
#133 - Shawn Tice / @shtice

12/29/2010 at 12:59AM

32
#134 - Andrew Scala / @agscala

12/29/2010 at 07:51AM

32
#135 - Øystein Walle / @oysteinwalle

07/06/2011 at 11:28PM

32
#136 - x03n046 / @x03n046

05/16/2022 at 08:45AM

33
#137 - David Wolever / @wolever

12/29/2010 at 12:16AM

33
#138 - Peter Anselmo / @peter_anselmo

12/31/2010 at 04:01AM

33
#139 - vansan / @VinceVansan

08/25/2012 at 08:00PM

33
#140 - くま ก็็็็็็็็็็็็็ʕ•͡ᴥ•ʔ ก้้้้้้้้้้้ 55 / @kumack55

04/08/2013 at 01:25AM

33
#141 - Pablo Acuna / @pacuna

10/26/2024 at 06:40PM

34
#142 - Steven Grady / @steven807

12/29/2010 at 12:45AM

34
#143 - Olivier El Mekki / @oelmekki

12/29/2010 at 01:27AM

34
#144 - Christopher Suter / @cgs1019

12/29/2010 at 03:56AM

34
#145 - Alex Bartol / @alexbartol

05/15/2015 at 02:49AM

34
#146 - Rick de chez Gnous / @GnousRick

07/09/2021 at 11:51AM

35
#147 - Matt Tarbit / @mtarbit

01/09/2011 at 09:50AM

35
#148 - xhtmlforum / @xhtmlforum

01/31/2011 at 08:46PM

35
#149 - shahanavaz m / @shahanavazm

01/31/2024 at 08:16PM

36
#150 - Vincent Isambart / @vincentisambart

12/31/2010 at 10:58AM