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 37 remaining solutions by signing in and submitting your own entry
#38 Sam / @sam_rands - Score: 295 - 09/27/23 @ 19:50
i<CR><Esc>k|---i|----<BS>--------|<BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Esc>qri|-----------|<Esc>qljo<Esc>@rjo<Esc>@rjo<Esc>@rkkkkkkhhhhhhhhhhhjo<CR><Up>|<Down>|k<BS><Esc>kklqla  <Down>   |<Down>   |<Esc>qkkl@lkkkjl@lj0jlqeo|<CR>|<Esc>qkkl@lkkl@ljjkkkkl@lj0lj@ekkl@lkkl@lkkkjl@lkkkkkkkkkkkkkj0lqxllrxjhrxhjrxllrxqkk<Esc>flllqor lroljrohhroljroqkklll@ojjh@xhhhhhhkk@xjj0l@xkkllllll@o:x<CR>

0 comments


Created by: @Somin13

38 active golfers, 134 entries

Leaderboard (lowest score wins):
161
#31 - Volker Schukai / @volker_schukai

09/29/2023 at 09:52PM

169
#32 - LandR / @ListenAndR

10/11/2023 at 04:05AM

186
#33 - Petro Тrouq / @zulolosi

09/13/2023 at 08:52PM

187
#34 - Alex Pepper / @AlexPepper1457

10/19/2023 at 08:40PM

194
#35 - Yassine Ibr / @yassineibr2001

10/22/2023 at 03:54PM

288
#36 - clemens_volk / @ohmsol

11/20/2023 at 01:30PM

290
#37 - Hyun / @ghkdgus29

11/13/2023 at 02:03PM

295
#38 - Sam / @sam_rands

09/27/2023 at 07:50PM