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 536 remaining solutions by signing in and submitting your own entry
#537 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

537 active golfers, 2342 entries

Leaderboard (lowest score wins):
16
#301 - 0xNinja / @0x_Ninja

10/25/2019 at 08:33AM

16
#302 - skamgolf / @skamgolf

11/07/2019 at 03:10AM

16
#303 - pysnow530 / @pysnow530

11/19/2019 at 10:50AM

16
#304 - Magnus / @praktiskt

11/22/2019 at 06:50PM

16
#305 - Nicolas Pagny / @NicolasPagny

12/03/2019 at 04:11PM

16
#306 - Andrei Popescu / @AndreiTheory

12/09/2019 at 08:46PM

16
#307 - Jason Neylon / @jasonneylon

12/17/2019 at 07:54PM

16
#308 - James Casey / @hanavi

12/21/2019 at 02:53AM

16
#309 - く / @noblack_nolife

01/22/2020 at 03:42AM

17
#310 - captain_morgan / @captain_morgan

09/18/2018 at 02:44PM

17
#311 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 08:49AM

17
#312 - vimgolf / @myspare307

09/25/2018 at 05:12AM

17
#313 - daniel / @daniel31464605

09/25/2018 at 01:21PM

17
#314 - PCS Solutions / @PeteSolutions

09/27/2018 at 06:30PM

17
#315 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#316 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM

17
#317 - Joel Schlosser / @joel_schlosser

10/03/2018 at 09:00PM

17
#318 - Florent Jaby / @Floby

10/09/2018 at 03:10PM

17
#319 - Jo / @Jo59893132

10/25/2018 at 05:39AM

17
#320 - Sxcy / @SxcyX

11/05/2018 at 03:35PM

17
#321 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:44PM

17
#322 - Angry Dev / @AngryDev7

12/01/2018 at 02:45PM

17
#323 - aka / @aaik4

12/23/2018 at 02:38AM

17
#324 - sstar / @sstar60015687

12/26/2018 at 09:36AM

17
#325 - Brome / @Brome20887421

01/04/2019 at 09:27PM

17
#326 - Benny / @b1299709

01/05/2019 at 10:09PM

17
#327 - Kit Saels / @KitSaels

01/24/2019 at 10:12PM

17
#328 - churaki / @churaki

01/25/2019 at 10:02PM

17
#329 - Michael Aquilina / @mikeaquilina4

02/02/2019 at 09:41PM

17
#330 - zenwalker / @zenwalker93

03/09/2019 at 01:22PM