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

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

83 active golfers, 396 entries

Solutions by @nightgather:
60
#15 - nightgather / @nightgather

02/10/2024 at 01:18PM

70
#>21 - nightgather / @nightgather

02/10/2024 at 01:06PM

71
#>23 - nightgather / @nightgather

02/10/2024 at 12:52PM

73
#>23 - nightgather / @nightgather

02/10/2024 at 12:27PM

74
#>23 - nightgather / @nightgather

02/10/2024 at 12:21PM

95
#>26 - nightgather / @nightgather

02/10/2024 at 11:52AM

98
#>28 - nightgather / @nightgather

02/10/2024 at 11:28AM

98
#>28 - nightgather / @nightgather

02/10/2024 at 11:34AM

108
#>35 - nightgather / @nightgather

02/09/2024 at 12:13PM

157
#>63 - nightgather / @nightgather

02/09/2024 at 06:43AM

434
#>83 - nightgather / @nightgather

02/09/2024 at 06:37AM