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

82 active golfers, 381 entries

Leaderboard (lowest score wins):
56
#1 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

04/16/2024 at 05:30AM

56
#2 - John Braxler / @braxler

04/22/2024 at 12:47PM

56
#3 - Peppa Pig / @PeppaPi95550250

06/28/2024 at 06:42AM

56
#4 - nickGPT / @nickandbro

08/23/2024 at 06:16AM

57
#5 - Aristotelis Dossas / @teldosas

04/06/2024 at 02:00PM

58
#6 - FilipRazek / @FilipRazek

11/11/2023 at 08:50AM

58
#7 - Blake Wingard / @Bats6789

11/16/2023 at 02:13PM

58
#8 - 悟史 / @A1OBJTxN5fTg5EJ

11/27/2023 at 03:38PM

58
#9 - Eric Dobson / @ericdobson

12/07/2023 at 07:16PM

58
#10 - Joachim Wedin / @joachimwedin

12/18/2023 at 09:19PM

58
#11 - Vishal / @gyanantaran

01/03/2024 at 08:27AM

58
#12 - jeffreymrussell / @jeffreymrussell

02/02/2024 at 11:32AM

58
#13 - Will-Hendrix / @Will-Hendrix

02/12/2024 at 03:44PM

60
#14 - nightgather / @nightgather

02/10/2024 at 01:18PM

62
#15 - Ryo_Ishimoto / @RIshimoto

03/08/2024 at 09:38AM

70
#16 - Jean George / @JeanGeo20504212

09/25/2023 at 04:40PM

70
#17 - tien / @tien40766111

10/17/2023 at 08:09AM

70
#18 - Vimgolf User / @VimgolfU

10/27/2023 at 08:48AM

70
#19 - Leon Katsnelson / @leonkatsnelson

11/20/2023 at 04:13PM

70
#20 - Remus Dalrymple / @bornintheflames

12/06/2023 at 08:52PM

71
#21 - MartnRamtin / @MartnRamtin

12/13/2023 at 12:30AM

71
#22 - Matt Zhang / @MattUnderscoreZhang

01/03/2024 at 03:27AM

75
#23 - Smylers / @Smylers2

09/14/2023 at 03:21PM

75
#24 - ShookerAndBeta / @Shooker2012

11/21/2023 at 07:45AM

91
#25 - Camille Masset / @tizot

03/16/2024 at 08:58AM

97
#26 - binayligal / @binayligal

12/31/2023 at 01:42PM

98
#27 - Yordan Boikov / @yboikov

01/07/2024 at 02:56AM

99
#28 - herbage / @herbage2

11/23/2023 at 10:39PM

99
#29 - dvquentincarrel / @dvquentincarrel

12/29/2023 at 12:30AM

100
#30 - shikitanrei / @shikitanrei

03/02/2024 at 11:10PM