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

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

83 active golfers, 396 entries

Solutions by @FilipRazek:
58
#7 - FilipRazek / @FilipRazek

11/11/2023 at 08:50AM

70
#>19 - FilipRazek / @FilipRazek

11/10/2023 at 09:48AM

75
#>24 - FilipRazek / @FilipRazek

11/10/2023 at 09:41AM

91
#>25 - FilipRazek / @FilipRazek

11/10/2023 at 09:37AM

95
#>26 - FilipRazek / @FilipRazek

11/10/2023 at 08:34AM

106
#>34 - FilipRazek / @FilipRazek

11/10/2023 at 08:30AM

150
#>57 - FilipRazek / @FilipRazek

11/10/2023 at 07:55AM

191
#>71 - FilipRazek / @FilipRazek

11/10/2023 at 07:46AM

192
#>72 - FilipRazek / @FilipRazek

11/10/2023 at 07:37AM

193
#>72 - FilipRazek / @FilipRazek

11/10/2023 at 07:36AM