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 by @wansmer:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @jktravis

31 active golfers, 97 entries

Solutions by @wansmer:
53
#17 - Иван / @wansmer

05/04/2023 at 06:01PM