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

419 active golfers, 1787 entries

Leaderboard (lowest score wins):
18
#271 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

18
#272 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:24PM

18
#273 - pebra / @pebrabb

05/10/2019 at 11:42AM

18
#274 - Abe Cede / @A_be_Cede

06/06/2019 at 12:25PM

18
#275 - dtjong / @dtjong2

06/07/2019 at 10:01PM

18
#276 - seul / @seul15987381

06/20/2019 at 11:09AM

19
#277 - S33 Dunda / @s33dUnda

09/18/2018 at 08:05PM

19
#278 - Sebastien Mesili / @seb_kr

09/29/2018 at 03:38AM

19
#279 - a / @UseForVim

10/03/2018 at 01:13PM

19
#280 - robinro / @robinro

10/05/2018 at 01:16PM

19
#281 - Paul Inc / @hiniol1982

10/18/2018 at 06:54PM

19
#282 - 茶々豆 / @chachamame0420

10/19/2018 at 12:37PM

19
#283 - Commi / @hellocommi

11/25/2018 at 11:30PM

19
#284 - Luis Rodriguez / @luisthecoder

01/03/2019 at 04:13AM

19
#285 - 강현 / @Applesquiz

01/20/2019 at 05:29PM

19
#286 - fucus / @fishlovebanana

02/21/2019 at 11:15AM

19
#287 - salmiak / @salmiak7

05/15/2019 at 11:15PM

19
#288 - Guillaume / @arteymix

06/07/2019 at 03:46AM

19
#289 - Jon Nalley / @na11ey

06/13/2019 at 06:48PM

19
#290 - mirsemen / @mirsemen1

07/15/2019 at 02:57AM

19
#291 - Fred Leclerc / @fredleclerc

07/24/2019 at 09:09PM

20
#292 - Amir Rajan / @amirrajan

10/11/2018 at 08:14AM

20
#293 - Rossi / @mrossinek

12/04/2018 at 07:16PM

20
#294 - Vending Machine / @storyn26383

12/16/2018 at 06:57AM

20
#295 - Emanuele Aliverti / @memeAliverti

02/13/2019 at 02:37PM

20
#296 - Tanguy ⧓ Herrmann / @hashtang__

06/06/2019 at 09:20AM

20
#297 - Aos Dabbagh / @aosdabbagh

06/06/2019 at 04:48PM

20
#298 - JamesB41 / @JamesB41

06/06/2019 at 08:14PM

21
#299 - diego olivera / @alejo_olivera

09/19/2018 at 08:53PM

21
#300 - kyoyachuan / @kyoyachuan0626

10/03/2018 at 09:19AM