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):
17
#241 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:53PM

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

05/24/2019 at 07:34PM

17
#243 - TheJoblessGuyTalks / @the_jgt

05/28/2019 at 08:44AM

17
#244 - Mark Blakeney / @bulletmark

06/06/2019 at 06:43AM

17
#245 - Ayzen / @Ayzen

06/06/2019 at 09:11AM

17
#246 - Tripurari Shankar / @tripurari001

06/06/2019 at 11:05AM

17
#247 - Aurel / @AurelienFebvre

06/25/2019 at 07:53PM

17
#248 - Scott Schlesier / @sschlesier

07/01/2019 at 06:36AM

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

07/10/2019 at 07:28AM

17
#250 - Peter Demin / @peterdemin

07/11/2019 at 05:45PM

17
#251 - Denis / @4NNTGudvin

07/12/2019 at 10:18AM

17
#252 - Crystal L / @Cartsly

07/13/2019 at 08:45PM

18
#253 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#254 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#255 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#256 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#257 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

18
#258 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

18
#259 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:24PM

18
#260 - pebra / @pebrabb

05/10/2019 at 11:42AM

18
#261 - Abe Cede / @A_be_Cede

06/06/2019 at 12:25PM

18
#262 - dtjong / @dtjong2

06/07/2019 at 10:01PM

18
#263 - seul / @seul15987381

06/20/2019 at 11:09AM

19
#264 - S33 Dunda / @s33dUnda

09/18/2018 at 08:05PM

19
#265 - Sebastien Mesili / @seb_kr

09/29/2018 at 03:38AM

19
#266 - a / @UseForVim

10/03/2018 at 01:13PM

19
#267 - robinro / @robinro

10/05/2018 at 01:16PM

19
#268 - Paul Inc / @hiniol1982

10/18/2018 at 06:54PM

19
#269 - 茶々豆 / @chachamame0420

10/19/2018 at 12:37PM

19
#270 - Commi / @hellocommi

11/25/2018 at 11:30PM