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

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

56 active golfers, 197 entries

Solutions by @GavinKoeng:
52
#23 - Gavin / @GavinKoeng

03/13/2026 at 02:23PM

53
#>30 - Gavin / @GavinKoeng

03/13/2026 at 02:22PM

55
#>31 - Gavin / @GavinKoeng

03/13/2026 at 02:21PM

56
#>35 - Gavin / @GavinKoeng

03/13/2026 at 02:20PM

58
#>38 - Gavin / @GavinKoeng

03/13/2026 at 02:19PM

60
#>40 - Gavin / @GavinKoeng

03/13/2026 at 02:17PM

61
#>41 - Gavin / @GavinKoeng

03/13/2026 at 02:16PM

64
#>46 - Gavin / @GavinKoeng

03/13/2026 at 02:13PM

66
#>48 - Gavin / @GavinKoeng

03/13/2026 at 02:08PM

67
#>48 - Gavin / @GavinKoeng

03/13/2026 at 02:11PM

69
#>51 - Gavin / @GavinKoeng

03/13/2026 at 02:00PM

70
#>51 - Gavin / @GavinKoeng

03/13/2026 at 01:57PM