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 5ba020f91abf2d000951055c

Com(m)a Trouble

Someone was real stupid when placing his commas. Can you fix it?

Start file
,0,1,2,3,4,5,6,7,89
,1,2,3,4,5,6,7,8,90
,2,3,4,5,6,7,8,9,01
,3,4,5,6,7,8,9,0,12
,4,5,6,7,8,9,0,1,23
56,7,8,9,0,1,2,3,4,
67,8,9,0,1,2,3,4,5,
78,9,0,1,2,3,4,5,6,
89,0,1,2,3,4,5,6,7,
90,1,2,3,4,5,6,7,8,
End file
0,1,2,3,4,5,6,7,8,9
1,2,3,4,5,6,7,8,9,0
2,3,4,5,6,7,8,9,0,1
3,4,5,6,7,8,9,0,1,2
4,5,6,7,8,9,0,1,2,3
5,6,7,8,9,0,1,2,3,4
6,7,8,9,0,1,2,3,4,5
7,8,9,0,1,2,3,4,5,6
8,9,0,1,2,3,4,5,6,7
9,0,1,2,3,4,5,6,7,8

View Diff

1,10c1,10
< ,0,1,2,3,4,5,6,7,89
< ,1,2,3,4,5,6,7,8,90
< ,2,3,4,5,6,7,8,9,01
< ,3,4,5,6,7,8,9,0,12
< ,4,5,6,7,8,9,0,1,23
< 56,7,8,9,0,1,2,3,4,
< 67,8,9,0,1,2,3,4,5,
< 78,9,0,1,2,3,4,5,6,
< 89,0,1,2,3,4,5,6,7,
< 90,1,2,3,4,5,6,7,8,
---
> 0,1,2,3,4,5,6,7,8,9
> 1,2,3,4,5,6,7,8,9,0
> 2,3,4,5,6,7,8,9,0,1
> 3,4,5,6,7,8,9,0,1,2
> 4,5,6,7,8,9,0,1,2,3
> 5,6,7,8,9,0,1,2,3,4
> 6,7,8,9,0,1,2,3,4,5
> 7,8,9,0,1,2,3,4,5,6
> 8,9,0,1,2,3,4,5,6,7
> 9,0,1,2,3,4,5,6,7,8

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 891 remaining solutions by signing in and submitting your own entry
#892 梁(Liang リャン) / @starduliang - Score: 208 - 03/01/20 @ 11:16
jk<C-V>jjjjxlllllllllllllllll<C-V>jjjjp<Esc><Esc>uh<C-V>jjjjp<Esc>uu<C-V>jjjjxlllllllllllhhhhf9h<C-V>jjjjp<Esc>u<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>ul<C-V>jjjjI,<Esc><Esc><Esc>jjjjjl<C-V>jjjjx<Esc>bbbbbbbbbbbbbbbbl<C-V>jjjjI,<Esc>jjjjjj:w<CR>:wq<CR>

0 comments


Created by: @DustVoice

892 active golfers, 3941 entries

Leaderboard (lowest score wins):
16
#511 - Sean Dewar / @seandewar

03/13/2020 at 05:58PM

16
#512 - bluemartian / @bluemartianz59

04/03/2020 at 08:01PM

16
#513 - Wesley Runnels / @wesleyrunnels

04/28/2020 at 03:38PM

16
#514 - Robin Abrahamsson / @rqAbrahamsson

05/01/2020 at 07:09PM

16
#515 - Anay Karnik / @anay_karnik

05/08/2020 at 10:10AM

16
#516 - Fabian Ahbeck / @FAhbeck

05/08/2020 at 11:20PM

16
#517 - Ed Leafe / @EdLeafe

06/16/2020 at 07:27PM

16
#518 - Rustem B. / @_rustemb

07/31/2020 at 05:12PM

16
#519 - vito / @vito49999722

08/17/2020 at 04:41PM

16
#520 - Kaustubh Murumkar / @k_austub_h

10/01/2020 at 06:52PM

16
#521 - Jon Powers / @JonKPowers

01/12/2021 at 11:59AM

16
#522 - Javier Contreras / @contranton

05/04/2022 at 05:50PM

16
#523 - andrewalker@mastodon.green / @andrewalkernet

10/11/2022 at 12:03PM

16
#524 - John Huynh / @huynh_j93

10/20/2022 at 07:59PM

16
#525 - rayx / @ray-x

12/05/2023 at 07:17AM

16
#526 - Rob Pilling / @bobrippling

12/14/2023 at 12:20PM

16
#527 - Lily / @totallyuniquelily

04/21/2024 at 01:51PM

16
#528 - Gerard Keane / @gerardkeane

05/17/2024 at 03:18PM

16
#529 - UrbanNinja1010 / @UrbanNinja1010

04/05/2025 at 09:16PM

16
#530 - Ondřej Lysoněk / @olysonek

04/13/2025 at 03:43PM

16
#531 - John Smith / @johnsmith0x3f

06/22/2025 at 05:05PM

16
#532 - Jesper Wallengren / @Qroop

06/27/2025 at 09:23AM

16
#533 - Ziad / @ZiadAlbitar

10/07/2025 at 10:15PM

17
#534 - captain_morgan / @captain_morgan

09/18/2018 at 02:44PM

17
#535 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 08:49AM

17
#536 - vimgolf / @myspare307

09/25/2018 at 05:12AM

17
#537 - daniel / @daniel31464605

09/25/2018 at 01:21PM

17
#538 - PCS Solutions / @PeteSolutions

09/27/2018 at 06:30PM

17
#539 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#540 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM