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 @MonkieeBoi:

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

53 active golfers, 180 entries

Solutions by @MonkieeBoi:
52
#21 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 07:13AM

52
#>21 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 07:26AM

53
#>28 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 07:10AM

55
#>29 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 06:53AM

59
#>37 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 06:45AM

64
#>43 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 06:42AM

72
#>48 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 06:39AM

73
#>49 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 06:36AM

78
#>50 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 06:21AM

79
#>50 - MonkieeBoi / @MonkieeBoi

12/06/2023 at 06:35AM