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 9v006501ab56000000000258

Tic-Tac-Toe Grid Transformation

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

Start file
|x|o|o|
| |x|x|
|x| |o|
End file
|-----------|
|x x| o | o |
| x |o o|o o|
|x x| o | o |
|-----------|
|   |x x|x x|
|   | x | x |
|   |x x|x x|
|-----------|
|x x|   | o |
| x |   |o o|
|x x|   | o |
|-----------|

View Diff

1,3c1,13
< |x|o|o|
< | |x|x|
< |x| |o|
---
> |-----------|
> |x x| o | o |
> | x |o o|o o|
> |x x| o | o |
> |-----------|
> |   |x x|x x|
> |   | x | x |
> |   |x x|x x|
> |-----------|
> |x x|   | o |
> | x |   |o o|
> |x x|   | o |
> |-----------|

Solutions by @herbage2:

Unlock 17 remaining solutions by signing in and submitting your own entry
Created by: @Somin13

83 active golfers, 396 entries

Solutions by @herbage2:
99
#29 - herbage / @herbage2

11/23/2023 at 10:39PM

102
#>32 - herbage / @herbage2

11/23/2023 at 10:33PM

108
#>35 - herbage / @herbage2

11/23/2023 at 10:28PM

116
#>42 - herbage / @herbage2

11/23/2023 at 10:24PM

122
#>46 - herbage / @herbage2

11/23/2023 at 10:22PM

123
#>46 - herbage / @herbage2

11/23/2023 at 10:16PM

124
#>46 - herbage / @herbage2

11/23/2023 at 09:19PM

125
#>47 - herbage / @herbage2

11/23/2023 at 10:15PM

128
#>51 - herbage / @herbage2

11/23/2023 at 10:13PM

130
#>52 - herbage / @herbage2

11/23/2023 at 09:26PM

133
#>52 - herbage / @herbage2

11/23/2023 at 08:50PM

133
#>52 - herbage / @herbage2

11/23/2023 at 09:11PM

137
#>52 - herbage / @herbage2

11/23/2023 at 08:39PM

140
#>53 - herbage / @herbage2

11/23/2023 at 09:39PM

149
#>56 - herbage / @herbage2

11/23/2023 at 09:04PM

169
#>68 - herbage / @herbage2

11/23/2023 at 08:34PM

191
#>71 - herbage / @herbage2

11/23/2023 at 08:27PM