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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 6 remaining solutions by signing in and submitting your own entry
#7 Petro Тrouq / @zulolosi - Score: 186 - 09/13/23 @ 20:52
cG|-----------|<CR>|x x| o | o |<CR>| x |o o|o o|<CR>|x x| o | o |<CR>|-----------|<CR>|   |x x|x x|<CR>|   | x | x |<CR>|   |x x|x x|<CR>|-----------|<CR>|x x|   | o |<CR>| x |   |o o|<CR>|x x|   | o |<CR>|-----------|<Esc>ZZ

0 comments


Created by: @Somin13

7 active golfers, 7 entries

Leaderboard (lowest score wins):
58
#1 - Danilo J. S. Bellini / @danilobellini

09/16/2023 at 08:15AM

58
#2 - John Braxler / @braxler

09/19/2023 at 03:38PM

75
#3 - Smylers / @Smylers2

09/14/2023 at 03:21PM

105
#4 - Monkey Boy / @monkey29089

09/21/2023 at 11:06AM

125
#5 - Milan Blažek / @Somin13

09/13/2023 at 12:57PM

149
#6 - Dyson / @DoctorDalek1963

09/15/2023 at 10:47AM

186
#7 - Petro Тrouq / @zulolosi

09/13/2023 at 08:52PM