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

77 active golfers, 319 entries

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

11/23/2023 at 10:39PM

102
#>29 - herbage / @herbage2

11/23/2023 at 10:33PM

108
#>32 - herbage / @herbage2

11/23/2023 at 10:28PM

116
#>38 - herbage / @herbage2

11/23/2023 at 10:24PM

122
#>42 - herbage / @herbage2

11/23/2023 at 10:22PM

123
#>42 - herbage / @herbage2

11/23/2023 at 10:16PM

124
#>42 - herbage / @herbage2

11/23/2023 at 09:19PM

125
#>43 - herbage / @herbage2

11/23/2023 at 10:15PM

128
#>47 - herbage / @herbage2

11/23/2023 at 10:13PM

130
#>48 - herbage / @herbage2

11/23/2023 at 09:26PM

133
#>48 - herbage / @herbage2

11/23/2023 at 08:50PM

133
#>48 - herbage / @herbage2

11/23/2023 at 09:11PM

137
#>48 - herbage / @herbage2

11/23/2023 at 08:39PM

140
#>49 - herbage / @herbage2

11/23/2023 at 09:39PM

149
#>52 - herbage / @herbage2

11/23/2023 at 09:04PM

169
#>62 - herbage / @herbage2

11/23/2023 at 08:34PM

191
#>65 - herbage / @herbage2

11/23/2023 at 08:27PM