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 871 remaining solutions by signing in and submitting your own entry
#872 梁(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

872 active golfers, 3863 entries

Leaderboard (lowest score wins):
16
#511 - Kaustubh Murumkar / @k_austub_h

10/01/2020 at 06:52PM

16
#512 - Jon Powers / @JonKPowers

01/12/2021 at 11:59AM

16
#513 - Javier Contreras / @contranton

05/04/2022 at 05:50PM

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

10/11/2022 at 12:03PM

16
#515 - John Huynh / @huynh_j93

10/20/2022 at 07:59PM

16
#516 - rayx / @ray-x

12/05/2023 at 07:17AM

16
#517 - Rob Pilling / @bobrippling

12/14/2023 at 12:20PM

16
#518 - Lily / @totallyuniquelily

04/21/2024 at 01:51PM

16
#519 - Gerard Keane / @gerardkeane

05/17/2024 at 03:18PM

17
#520 - captain_morgan / @captain_morgan

09/18/2018 at 02:44PM

17
#521 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 08:49AM

17
#522 - vimgolf / @myspare307

09/25/2018 at 05:12AM

17
#523 - daniel / @daniel31464605

09/25/2018 at 01:21PM

17
#524 - PCS Solutions / @PeteSolutions

09/27/2018 at 06:30PM

17
#525 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#526 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM

17
#527 - Joel Schlosser / @joel_schlosser

10/03/2018 at 09:00PM

17
#528 - Florent Jaby / @Floby

10/09/2018 at 03:10PM

17
#529 - Jo / @Jo59893132

10/25/2018 at 05:39AM

17
#530 - Sxcy / @SxcyX

11/05/2018 at 03:35PM

17
#531 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:44PM

17
#532 - Angry Dev / @AngryDev7

12/01/2018 at 02:45PM

17
#533 - aka / @aaik4

12/23/2018 at 02:38AM

17
#534 - sstar / @sstar60015687

12/26/2018 at 09:36AM

17
#535 - Brome / @Brome20887421

01/04/2019 at 09:27PM

17
#536 - Benny / @b1299709

01/05/2019 at 10:09PM

17
#537 - Kit Saels / @KitSaels

01/24/2019 at 10:12PM

17
#538 - churaki / @churaki

01/25/2019 at 10:02PM

17
#539 - Michael Aquilina / @mikeaquilina4

02/02/2019 at 09:41PM

17
#540 - zenwalker / @zenwalker93

03/09/2019 at 01:22PM