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 594db7f41ba5d60135000005

Text to HTML Table

Turn the plain text table to an HTML table.

Start file
012
345
678
9ab
cde
 f 
End file
<table>
	<tr><td>0</td><td>1</td><td>2</td></tr>
	<tr><td>3</td><td>4</td><td>5</td></tr>
	<tr><td>6</td><td>7</td><td>8</td></tr>
	<tr><td>9</td><td>a</td><td>b</td></tr>
	<tr><td>c</td><td>d</td><td>e</td></tr>
	<tr><td> </td><td>f</td><td> </td></tr>
</table>

View Diff

1,6c1,8
< 012
< 345
< 678
< 9ab
< cde
<  f 
---
> <table>
> 	<tr><td>0</td><td>1</td><td>2</td></tr>
> 	<tr><td>3</td><td>4</td><td>5</td></tr>
> 	<tr><td>6</td><td>7</td><td>8</td></tr>
> 	<tr><td>9</td><td>a</td><td>b</td></tr>
> 	<tr><td>c</td><td>d</td><td>e</td></tr>
> 	<tr><td> </td><td>f</td><td> </td></tr>
> </table>

Solutions by @mihaicristiant:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @tpenguinltg

53 active golfers, 180 entries

Solutions by @mihaicristiant:
53
#26 - Mihai / @mihaicristiant

01/30/2019 at 03:23PM

54
#>28 - Mihai / @mihaicristiant

01/30/2019 at 03:21PM

55
#>29 - Mihai / @mihaicristiant

01/30/2019 at 01:45PM

56
#>33 - Mihai / @mihaicristiant

01/29/2019 at 03:55PM

57
#>34 - Mihai / @mihaicristiant

01/29/2019 at 03:52PM

58
#>35 - Mihai / @mihaicristiant

01/29/2019 at 03:55PM

60
#>38 - Mihai / @mihaicristiant

01/29/2019 at 01:18PM

64
#>43 - Mihai / @mihaicristiant

01/29/2019 at 01:09PM

65
#>44 - Mihai / @mihaicristiant

01/29/2019 at 01:13PM

72
#>48 - Mihai / @mihaicristiant

01/29/2019 at 09:45AM

72
#>48 - Mihai / @mihaicristiant

01/29/2019 at 01:08PM

150
#>53 - Mihai / @mihaicristiant

01/29/2019 at 09:44AM