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

82 active golfers, 381 entries

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

11/23/2023 at 10:39PM

102
#>31 - herbage / @herbage2

11/23/2023 at 10:33PM

108
#>34 - herbage / @herbage2

11/23/2023 at 10:28PM

116
#>41 - herbage / @herbage2

11/23/2023 at 10:24PM

122
#>45 - herbage / @herbage2

11/23/2023 at 10:22PM

123
#>45 - herbage / @herbage2

11/23/2023 at 10:16PM

124
#>45 - herbage / @herbage2

11/23/2023 at 09:19PM

125
#>46 - herbage / @herbage2

11/23/2023 at 10:15PM

128
#>50 - herbage / @herbage2

11/23/2023 at 10:13PM

130
#>51 - herbage / @herbage2

11/23/2023 at 09:26PM

133
#>51 - herbage / @herbage2

11/23/2023 at 08:50PM

133
#>51 - herbage / @herbage2

11/23/2023 at 09:11PM

137
#>51 - herbage / @herbage2

11/23/2023 at 08:39PM

140
#>52 - herbage / @herbage2

11/23/2023 at 09:39PM

149
#>55 - herbage / @herbage2

11/23/2023 at 09:04PM

169
#>67 - herbage / @herbage2

11/23/2023 at 08:34PM

191
#>70 - herbage / @herbage2

11/23/2023 at 08:27PM