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

436 active golfers, 1848 entries

Leaderboard (lowest score wins):
17
#241 - daniel / @daniel31464605

09/25/2018 at 01:21PM

17
#242 - PCS Solutions / @PeteSolutions

09/27/2018 at 06:30PM

17
#243 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#244 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM

17
#245 - Joel Schlosser / @joel_schlosser

10/03/2018 at 09:00PM

17
#246 - Florent Jaby / @Floby

10/09/2018 at 03:10PM

17
#247 - Jo / @Jo59893132

10/25/2018 at 05:39AM

17
#248 - Sxcy / @SxcyX

11/05/2018 at 03:35PM

17
#249 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:44PM

17
#250 - Angry Dev / @AngryDev7

12/01/2018 at 02:45PM

17
#251 - aka / @aaik4

12/23/2018 at 02:38AM

17
#252 - sstar / @sstar60015687

12/26/2018 at 09:36AM

17
#253 - Brome / @Brome20887421

01/04/2019 at 09:27PM

17
#254 - Benny / @b1299709

01/05/2019 at 10:09PM

17
#255 - Kit Saels / @KitSaels

01/24/2019 at 10:12PM

17
#256 - churaki / @churaki

01/25/2019 at 10:02PM

17
#257 - Michael Aquilina / @mikeaquilina4

02/02/2019 at 09:41PM

17
#258 - zenwalker / @zenwalker93

03/09/2019 at 01:22PM

17
#259 - ui / @ui61065627

03/14/2019 at 07:29AM

17
#260 - Duke Du / @DukeDu2

03/26/2019 at 03:15AM

17
#261 - 김현수 / @flyhigh43

04/27/2019 at 06:53PM

17
#262 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:53PM

17
#263 - Henry Wang (theKidOfArcrania) / @kidOfArcrania

05/24/2019 at 07:34PM

17
#264 - TheJoblessGuyTalks / @the_jgt

05/28/2019 at 08:44AM

17
#265 - Mark Blakeney / @bulletmark

06/06/2019 at 06:43AM

17
#266 - Ayzen / @Ayzen

06/06/2019 at 09:11AM

17
#267 - Tripurari Shankar / @tripurari001

06/06/2019 at 11:05AM

17
#268 - Aurel / @AurelienFebvre

06/25/2019 at 07:53PM

17
#269 - Scott Schlesier / @sschlesier

07/01/2019 at 06:36AM

17
#270 - Артур Кашаев / @KashaevArthur

07/10/2019 at 07:28AM