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 394 remaining solutions by signing in and submitting your own entry
#395 Matej Stuchlik / @mstuchli - Score: 159 - 06/06/19 @ 16:21
<C-V>jjjjxpl.u.uuu<C-V>jjjj<Esc><Esc>kkkkqq<C-V>jjjjxpql@ql@@l@@l@@l@@l@@l@@l@@jjjjjhhhhhhhhhhhhhhhhhhhhllqq<C-V>jjjjxhhpqlll@qlll@@lll@@lll@@lll@@lll@@lll@@lll@@u@@u<C-V>jjjjxhp<Esc>:w<CR>:wqa<CR>

0 comments


Created by: @DustVoice

395 active golfers, 1699 entries

Leaderboard (lowest score wins):
16
#211 - etherflow / @etherfl0w

06/06/2019 at 06:23PM

16
#212 - David / @Liimero

06/06/2019 at 06:55PM

16
#213 - i_orykhivskyi / @i_orykh

06/08/2019 at 03:37PM

16
#214 - たぬぽん / @eJYwMbymauWKF4B

06/11/2019 at 11:10AM

16
#215 - majo senf / @majo_senf

07/01/2019 at 03:34PM

16
#216 - ixf / @ixfdv

07/05/2019 at 07:52PM

17
#217 - captain_morgan / @captain_morgan

09/18/2018 at 02:44PM

17
#218 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 08:49AM

17
#219 - vimgolf / @myspare307

09/25/2018 at 05:12AM

17
#220 - daniel / @daniel31464605

09/25/2018 at 01:21PM

17
#221 - PCS Solutions / @PeteSolutions

09/27/2018 at 06:30PM

17
#222 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#223 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM

17
#224 - Joel Schlosser / @joel_schlosser

10/03/2018 at 09:00PM

17
#225 - Florent Jaby / @Floby

10/09/2018 at 03:10PM

17
#226 - Jo / @Jo59893132

10/25/2018 at 05:39AM

17
#227 - Sxcy / @SxcyX

11/05/2018 at 03:35PM

17
#228 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:44PM

17
#229 - Angry Dev / @AngryDev7

12/01/2018 at 02:45PM

17
#230 - aka / @aaik4

12/23/2018 at 02:38AM

17
#231 - sstar / @sstar60015687

12/26/2018 at 09:36AM

17
#232 - Brome / @Brome20887421

01/04/2019 at 09:27PM

17
#233 - Benny / @b1299709

01/05/2019 at 10:09PM

17
#234 - Kit Saels / @KitSaels

01/24/2019 at 10:12PM

17
#235 - churaki / @churaki

01/25/2019 at 10:02PM

17
#236 - Michael Aquilina / @mikeaquilina4

02/02/2019 at 09:41PM

17
#237 - zenwalker / @zenwalker93

03/09/2019 at 01:22PM

17
#238 - ui / @ui61065627

03/14/2019 at 07:29AM

17
#239 - Duke Du / @DukeDu2

03/26/2019 at 03:15AM

17
#240 - 김현수 / @flyhigh43

04/27/2019 at 06:53PM