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 76 remaining solutions by signing in and submitting your own entry
#77 윤지환 / @doilche - Score: 352 - 03/18/24 @ 10:21
i<CR><Esc>ljkk<C-\>i<C-\>i<Esc><Esc>i|------------|<CR><BS><Esc>jhhhhi x x<Esc>ll hi l<BS><Esc>lli <Esc>ll jkhi <Esc>lli <CR><BS><Esc><CR>i<CR><CR><Esc>llkk|i| k<BS><Esc>kllli<BS><BS><Esc>j kill<BS><BS><BS><CR><Esc>l jkkli x i<BS>|o o|o o|<CR><Esc>kkyy.uyy<Esc><Esc>jjpkddkjjlkkkklli<Esc>xjjjji|   |x x|x <BS>x<BS> c<BS>x|<CR>|   | x | | <BS><BS>x |<CR>|  |<BS> |x x|x<BS>x x|<CR>|-----------|<CR>|s<BS>x x|   | o |<CR>| |<BS>x |   |o o <BS>|<CR>|x x|   | o |<Esc><Esc>jddddkkkkkki<CR>k<BS><Esc>k|---jjji|-----------|<Esc>jjjjjjjj<CR><CR>a<CR>|-----------|<Esc>:wq<CR>

0 comments


Created by: @Somin13

77 active golfers, 319 entries

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

09/29/2023 at 09:52PM

169
#62 - LandR / @ListenAndR

10/11/2023 at 04:05AM

186
#63 - Petro Тrouq / @zulolosi

09/13/2023 at 08:52PM

186
#64 - Jonatas Rafael Carneiro Ribeiro / @jonatasrafael

12/08/2023 at 02:48AM

187
#65 - Alex Pepper / @AlexPepper1457

10/19/2023 at 08:40PM

191
#66 - Kerdan226-training / @Kerdan226-training

12/12/2023 at 02:40PM

193
#67 - @grhkm@infosec.exchange / @grhkm21

03/24/2024 at 02:36AM

194
#68 - Yassine Ibr / @yassineibr2001

10/22/2023 at 03:54PM

206
#69 - mst_ysk / @mstysk

03/09/2024 at 10:42PM

226
#70 - microjoint / @microjoint

04/11/2024 at 06:46AM

228
#71 - wuwubean / @wuwubean

04/18/2024 at 06:36PM

232
#72 - ydbB / @ydbB

02/03/2024 at 02:12AM

239
#73 - maruryota / @maruryota

04/17/2024 at 12:50AM

288
#74 - clemens_volk / @ohmsol

11/20/2023 at 01:30PM

290
#75 - Hyun / @ghkdgus29

11/13/2023 at 02:03PM

295
#76 - Sam / @sam_rands

09/27/2023 at 07:50PM

352
#77 - 윤지환 / @doilche

03/18/2024 at 10:21AM