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 50a1b172c654360002000033

Add links to an existing HTML table

Add these links at that top to the respective table cell. First link, first cell, etc.

Start file
http://example.com/link/to/page/1
http://example.com/link/to/page/2
http://example.com/link/to/page/3
http://example.com/link/to/page/4
http://example.com/link/to/page/5
http://example.com/link/to/page/6
http://example.com/link/to/page/7
http://example.com/link/to/page/8
http://example.com/link/to/page/9
http://example.com/link/to/page/10
http://example.com/link/to/page/11
http://example.com/link/to/page/12


<tbody>
	<tr>
		<td>Oct. 23, 2012</td>
		<td>Oct. 24, 2012</td>
	</tr>
	<tr>
		<td>Nov. 13, 2012</td>
		<td>Nov. 14, 2012</td>
	</tr>
	<tr>
		<td>Dec. 18, 2012</td>
		<td>Dec. 20, 2012</td>
	</tr>
	<tr>
		<td>Jan. 15, 2013</td>
		<td>Jan. 17, 2013</td>
	</tr>
	<tr>
		<td>Feb. 19, 2013</td>
		<td>Feb. 21, 2013</td>
	</tr>
	<tr>
		<td>March 19, 2013</td>
		<td>March 21, 2013</td>
	</tr>
	<tr>
		<td>April 16, 2013</td>
		<td>April 18, 2013</td>
	</tr>
</tbody>

End file
<tbody>
	<tr>
		<td><a href="http://example.com/link/to/page/1">Oct. 23, 2012</a></td>
		<td><a href="http://example.com/link/to/page/2">Oct. 24, 2012</a></td>
	</tr>
	<tr>
		<td><a href="http://example.com/link/to/page/3">Nov. 13, 2012</a></td>
		<td><a href="http://example.com/link/to/page/4">Nov. 14, 2012</a></td>
	</tr>
	<tr>
		<td><a href="http://example.com/link/to/page/5">Dec. 18, 2012</a></td>
		<td><a href="http://example.com/link/to/page/6">Dec. 20, 2012</a></td>
	</tr>
	<tr>
		<td><a href="http://example.com/link/to/page/7">Jan. 15, 2013</a></td>
		<td><a href="http://example.com/link/to/page/8">Jan. 17, 2013</a></td>
	</tr>
	<tr>
		<td><a href="http://example.com/link/to/page/9">Feb. 19, 2013</a></td>
		<td><a href="http://example.com/link/to/page/10">Feb. 21, 2013</a></td>
	</tr>
	<tr>
		<td><a href="http://example.com/link/to/page/11">March 19, 2013</a></td>
		<td><a href="http://example.com/link/to/page/12">March 21, 2013</a></td>
	</tr>
</tbody>

View Diff

1,14d0
< http://example.com/link/to/page/1
< http://example.com/link/to/page/2
< http://example.com/link/to/page/3
< http://example.com/link/to/page/4
< http://example.com/link/to/page/5
< http://example.com/link/to/page/6
< http://example.com/link/to/page/7
< http://example.com/link/to/page/8
< http://example.com/link/to/page/9
< http://example.com/link/to/page/10
< http://example.com/link/to/page/11
< http://example.com/link/to/page/12
< 
< 
17,22c3,4
< 		<td>Oct. 23, 2012</td>
< 		<td>Oct. 24, 2012</td>
< 	</tr>
< 	<tr>
< 		<td>Nov. 13, 2012</td>
< 		<td>Nov. 14, 2012</td>
---
> 		<td><a href="http://example.com/link/to/page/1">Oct. 23, 2012</a></td>
> 		<td><a href="http://example.com/link/to/page/2">Oct. 24, 2012</a></td>
25,26c7,8
< 		<td>Dec. 18, 2012</td>
< 		<td>Dec. 20, 2012</td>
---
> 		<td><a href="http://example.com/link/to/page/3">Nov. 13, 2012</a></td>
> 		<td><a href="http://example.com/link/to/page/4">Nov. 14, 2012</a></td>
29,30c11,12
< 		<td>Jan. 15, 2013</td>
< 		<td>Jan. 17, 2013</td>
---
> 		<td><a href="http://example.com/link/to/page/5">Dec. 18, 2012</a></td>
> 		<td><a href="http://example.com/link/to/page/6">Dec. 20, 2012</a></td>
33,34c15,16
< 		<td>Feb. 19, 2013</td>
< 		<td>Feb. 21, 2013</td>
---
> 		<td><a href="http://example.com/link/to/page/7">Jan. 15, 2013</a></td>
> 		<td><a href="http://example.com/link/to/page/8">Jan. 17, 2013</a></td>
37,38c19,20
< 		<td>March 19, 2013</td>
< 		<td>March 21, 2013</td>
---
> 		<td><a href="http://example.com/link/to/page/9">Feb. 19, 2013</a></td>
> 		<td><a href="http://example.com/link/to/page/10">Feb. 21, 2013</a></td>
41,42c23,24
< 		<td>April 16, 2013</td>
< 		<td>April 18, 2013</td>
---
> 		<td><a href="http://example.com/link/to/page/11">March 19, 2013</a></td>
> 		<td><a href="http://example.com/link/to/page/12">March 21, 2013</a></td>

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 20 remaining solutions by signing in and submitting your own entry
#21 Jamie / jamiebikies - Score: 66 - 11/23/12 @ 23:47
qq/<td<CR>3lmaldt<ggi<a href="<C-O>$"><C-O>p</a><Esc>0D"_dd`ap<Esc>q11@qjj3djggdj:wq<CR>

0 comments

#22 Jaron R. Hendrix / Ronamo - Score: 68 - 09/05/14 @ 17:49
qq/<td<CR>3lmaldt<ggi<a href="<C-O>$"><C-O>p</a><Esc>0D"_dd`ap<Esc>q11@qjj3djggdj:W<BS>wq<CR>

0 comments

#23 Édouard M'tou / DouardM - Score: 75 - 11/13/12 @ 14:12
<C-V>}kI<a href="<Esc>$<C-V>}k$A<<BS>"><Esc>/<td<CR>qqmaggdd`af>a<CR><C-O>P<BS><Esc>Jxf<i</a><Esc>nq11@qkV3jdggdjZZ

0 comments

#24 makala noble / mnoble01 - Score: 84 - 11/13/12 @ 08:00
qaI<a href="<Esc>A"><Esc>qqwj@aq10@w/<td<CR>qrggd$J``f>pnq11@rkd3jggdj:%s/<\/td/<\/a><\/td/g<CR>ZZ

0 comments

#25 Ravi S Sinha / ambidextrousTx - Score: 104 - 11/13/12 @ 04:33
17Gqaggdd``f>a<a href=""><Esc>f<i</a><Esc>F"i<C-R>"<Esc>kJx0qj@ajjj@@j@@jjj@@@<Esc>j@@jjj@@j@@jjj@@j@@jjj@@j@@jjVjjjxggdd.ZZ

0 comments

Created by: jktravis

25 active golfers, 59 entries

Leaderboard (lowest score wins):
42
#1 - László Bácsi / icanscale

05/03/2013 at 09:47AM

42
#2 - Jon Krause / jkrause314

01/27/2016 at 01:03AM

43
#3 - Conner McDaniel / connermcd

11/17/2012 at 06:14AM

43
#4 - Ker / alin_ker

11/21/2012 at 03:04PM

43
#5 - Urtica dioica / udioica

05/14/2013 at 08:04AM

43
#6 - John Braxler / braxler

10/09/2014 at 06:06PM

43
#7 - François Marais / maraisf

07/22/2016 at 04:41AM

45
#8 - 無ん垢の叫び / john_ababa

11/18/2012 at 08:11AM

46
#9 - Kerson Hsiao / KersonHsiao

11/13/2012 at 05:02PM

48
#10 - Emile Swarts / EmileSwarts

11/18/2012 at 08:19PM

52
#11 - Nicholas Amina / apolatg

11/17/2012 at 07:14AM

52
#12 - Hubba / HubbaBubbaFett

11/24/2012 at 03:23PM

52
#13 - Ram Tamtam / ramtamtamtam

07/07/2014 at 08:18PM

55
#14 - Chasetopher / chasetopherlee

04/30/2013 at 03:54AM

56
#15 - Arun / UArunKumar

12/04/2012 at 07:21PM

57
#16 - James Tomasino / mr_ino

11/13/2012 at 08:55PM

57
#17 - Justin Knag / justinknag

09/22/2014 at 09:04PM

60
#18 - Jason Wolf / zephyr_wolf

11/14/2012 at 03:29PM

61
#19 - David Yan / david_yan

04/18/2013 at 08:16PM

66
#20 - Marcin Sza / coot_

11/18/2012 at 02:05PM

66
#21 - Jamie / jamiebikies

11/23/2012 at 11:47PM

68
#22 - Jaron R. Hendrix / Ronamo

09/05/2014 at 05:49PM

75
#23 - Édouard M'tou / DouardM

11/13/2012 at 02:12PM

84
#24 - makala noble / mnoble01

11/13/2012 at 08:00AM

104
#25 - Ravi S Sinha / ambidextrousTx

11/13/2012 at 04:33AM