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):
101
#31 - Gino Fazari / @GinoF

09/27/2023 at 03:12AM

105
#32 - Monkey Boy / @monkey29089

09/21/2023 at 11:06AM

105
#33 - snkkid / @snkkid

10/30/2023 at 02:15PM

108
#34 - かぼす / @umesawanokabosu

10/06/2023 at 10:08AM

109
#35 - Let-me-C / @Let-me-C

03/11/2024 at 10:13PM

110
#36 - schrjako / @schrjako

04/05/2024 at 05:26PM

111
#37 - Stefan Krist / @nerdyness_sk

10/24/2023 at 08:22PM

111
#38 - Maurice Schmicking / @m_schmicking

10/25/2023 at 10:03AM

112
#39 - Ludovic Schwartz / @ludovicschwartz

11/16/2023 at 05:58PM

112
#40 - Blake Raymond / @bit-ray

07/22/2024 at 06:20AM

115
#41 - samuel erlands / @ErlandsSam52210

10/25/2023 at 10:18AM

116
#42 - Josh Pius / @josh-pius

12/08/2023 at 07:08PM

118
#43 - Svet PENKOV / @svet_ai

02/19/2024 at 02:14PM

119
#44 - Vigneshkumar Chinnachamy / @vigneshTheDev

12/11/2023 at 06:27AM

120
#45 - Andrew Morris / @AndrewJZ

10/13/2023 at 06:24AM

125
#46 - Milan Blažek / @Somin13

09/13/2023 at 12:57PM

125
#47 - TiOs-dev / @TiOs-dev

12/20/2023 at 09:09AM

126
#48 - NDavis / @D1727374757

10/16/2023 at 07:59PM

127
#49 - Danny Iachini / @diachini

11/13/2023 at 09:53PM

127
#50 - Lukasz Sroka / @louqash

11/23/2023 at 03:32PM

129
#51 - Charlie-83 / @Charlie-83

04/18/2024 at 08:11AM

139
#52 - Pretend it's Beef / @EthanMcQuarrie

10/05/2023 at 03:24AM

145
#53 - Hugo O Rivera / @roguh

12/29/2023 at 05:11AM

148
#54 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

03/08/2024 at 10:55AM

149
#55 - Dyson / @DoctorDalek1963

09/15/2023 at 10:47AM

149
#56 - Charlie / @charliezchen

03/29/2024 at 03:16AM

152
#57 - Baptiste Nicolet / @bathal1

03/13/2024 at 02:14PM

153
#58 - Arey125 / @Arey125

01/06/2024 at 01:02PM

153
#59 - Adi / @adi2004

04/03/2024 at 08:45PM

154
#60 - Willy / @Willy6932612311

08/30/2024 at 07:46AM