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

637 active golfers, 2827 entries

Leaderboard (lowest score wins):
16
#361 - cínicoycansino / @pgv958

09/27/2019 at 11:18AM

16
#362 - Lorenzo Bertolino / @lo_bertolino

10/09/2019 at 04:14PM

16
#363 - 0xNinja / @0x_Ninja

10/25/2019 at 08:33AM

16
#364 - skamgolf / @skamgolf

11/07/2019 at 03:10AM

16
#365 - pysnow530 / @pysnow530

11/19/2019 at 10:50AM

16
#366 - Magnus / @praktiskt

11/22/2019 at 06:50PM

16
#367 - Nicolas Pagny / @NicolasPagny

12/03/2019 at 04:11PM

16
#368 - Andrei Popescu / @AndreiTheory

12/09/2019 at 08:46PM

16
#369 - Jason Neylon / @jasonneylon

12/17/2019 at 07:54PM

16
#370 - James Casey / @hanavi

12/21/2019 at 02:53AM

16
#371 - く / @noblack_nolife

01/22/2020 at 03:42AM

16
#372 - Pham Tuan Anh / @anhpt379

02/17/2020 at 03:52AM

16
#373 - Bitt Faulk / @bittfaulk

02/20/2020 at 09:38PM

16
#374 - Sean Dewar / @seandewar

03/13/2020 at 05:58PM

16
#375 - bluemartian / @bluemartianz59

04/03/2020 at 08:01PM

16
#376 - Wesley Runnels / @wesleyrunnels

04/28/2020 at 03:38PM

16
#377 - Robin Abrahamsson / @rqAbrahamsson

05/01/2020 at 07:09PM

16
#378 - Anay Karnik / @anay_karnik

05/08/2020 at 10:10AM

16
#379 - Fabian Ahbeck / @FAhbeck

05/08/2020 at 11:20PM

16
#380 - Yannick / @Yannick88147038

06/01/2020 at 09:32AM

16
#381 - Ed Leafe / @EdLeafe

06/16/2020 at 07:27PM

17
#382 - captain_morgan / @captain_morgan

09/18/2018 at 02:44PM

17
#383 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 08:49AM

17
#384 - vimgolf / @myspare307

09/25/2018 at 05:12AM

17
#385 - daniel / @daniel31464605

09/25/2018 at 01:21PM

17
#386 - PCS Solutions / @PeteSolutions

09/27/2018 at 06:30PM

17
#387 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#388 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM

17
#389 - Joel Schlosser / @joel_schlosser

10/03/2018 at 09:00PM

17
#390 - Florent Jaby / @Floby

10/09/2018 at 03:10PM