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

31 active golfers, 97 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

42
#3 - Topvimgolf Score / @topvimgolfscore

07/28/2023 at 12:46AM

42
#4 - Peppa Pig / @PeppaPi95550250

07/03/2024 at 06:33AM

42
#5 - nickGPT / @nickandbro

08/28/2024 at 07:31PM

43
#6 - Conner McDaniel / @connermcd

11/17/2012 at 06:14AM

43
#7 - Ker / @alin_ker

11/21/2012 at 03:04PM

43
#8 - Urtica dioica / @udioica

05/14/2013 at 08:04AM

43
#9 - John Braxler / @braxler

10/09/2014 at 06:06PM

43
#10 - Francois Marais / @maraisf

07/22/2016 at 04:41AM

45
#11 - じょんあば / @john_ababa

11/18/2012 at 08:11AM

46
#12 - Kerson Hsiao / @KersonHsiao

11/13/2012 at 05:02PM

48
#13 - Emile Swarts / @EmileSwarts

11/18/2012 at 08:19PM

52
#14 - Nicholas Amina / @apolatg

11/17/2012 at 07:14AM

52
#15 - Hubba / @HubbaBubbaFett

11/24/2012 at 03:23PM

52
#16 - Ram Tamtam / @ramtamtamtam

07/07/2014 at 08:18PM

53
#17 - Иван / @wansmer

05/04/2023 at 06:01PM

55
#18 - Chasetopher / @chasetopherlee

04/30/2013 at 03:54AM

56
#19 - Arun / @UArunKumar

12/04/2012 at 07:21PM

57
#20 - James Tomasino / @mr_ino

11/13/2012 at 08:55PM

57
#21 - Justin Knag / @justinknag

09/22/2014 at 09:04PM

60
#22 - Jason Wolf / @zephyr_wolf

11/14/2012 at 03:29PM

61
#23 - David Yan / @david_yan

04/18/2013 at 08:16PM

66
#24 - Marcin Szamotulski / @me_coot

11/18/2012 at 02:05PM

66
#25 - Jamie / @jamiebikies

11/23/2012 at 11:47PM

68
#26 - Jaron R. Hendrix / @Ronamo

09/05/2014 at 05:49PM

75
#27 - Édouard M'tou / @DouardM

11/13/2012 at 02:12PM

83
#28 - shahanavaz m / @shahanavazm

04/09/2024 at 03:18AM

84
#29 - makala noble / @mnoble01

11/13/2012 at 08:00AM

100
#30 - 조성식 / @Y9eKW0qxvsdIN6W

03/26/2021 at 04:04AM