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

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

82 active golfers, 381 entries

Solutions by @jeffreymrussell:
58
#12 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 11:32AM

70
#>20 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 11:30AM

71
#>22 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 11:27AM

75
#>24 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 11:25AM

92
#>25 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 11:23AM

99
#>29 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 11:17AM

108
#>34 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 10:58AM

124
#>45 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 10:50AM

125
#>47 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 10:41AM

135
#>51 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 10:47AM

157
#>62 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 10:34AM