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 82 remaining solutions by signing in and submitting your own entry
#83 윤지환 / @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

83 active golfers, 396 entries

Leaderboard (lowest score wins):
154
#61 - Willy / @Willy6932612311

08/30/2024 at 07:46AM

155
#62 - djheidihoe / @djheidihoe1

11/14/2023 at 08:52AM

155
#63 - dehi / @dehidehidehi

01/16/2024 at 10:19PM

159
#64 - jferina / @jferina

03/29/2024 at 01:00AM

160
#65 - The Deng Excreted by the Cultural Revolution / @saamnudaam

10/31/2023 at 11:09PM

161
#66 - Volker Schukai / @volker_schukai

09/29/2023 at 09:52PM

162
#67 - Håkon Anders Strømsodd / @haakon8855

04/24/2024 at 02:06PM

169
#68 - LandR / @ListenAndR

10/11/2023 at 04:05AM

186
#69 - Petro Тrouq / @zulolosi

09/13/2023 at 08:52PM

186
#70 - Jonatas Rafael Carneiro Ribeiro / @jonatasrafael

12/08/2023 at 02:48AM

187
#71 - Alex Pepper / @AlexPepper1457

10/19/2023 at 08:40PM

191
#72 - Kerdan226-training / @Kerdan226-training

12/12/2023 at 02:40PM

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

03/24/2024 at 02:36AM

194
#74 - Yassine Ibr / @yassineibr2001

10/22/2023 at 03:54PM

206
#75 - mst_ysk / @mstysk

03/09/2024 at 10:42PM

226
#76 - microjoint / @microjoint

04/11/2024 at 06:46AM

228
#77 - wuwubean / @wuwubean

04/18/2024 at 06:36PM

232
#78 - ydbB / @ydbB

02/03/2024 at 02:12AM

239
#79 - maruryota / @maruryota

04/17/2024 at 12:50AM

288
#80 - clemens_volk / @ohmsol

11/20/2023 at 01:30PM

290
#81 - Hyun / @ghkdgus29

11/13/2023 at 02:03PM

295
#82 - Sam / @sam_rands

09/27/2023 at 07:50PM

352
#83 - 윤지환 / @doilche

03/18/2024 at 10:21AM