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

509 active golfers, 2192 entries

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

06/06/2019 at 06:23PM

16
#272 - David / @Liimero

06/06/2019 at 06:55PM

16
#273 - i_orykhivskyi / @i_orykh

06/08/2019 at 03:37PM

16
#274 - たぬぽん / @eJYwMbymauWKF4B

06/11/2019 at 11:10AM

16
#275 - majo senf / @majo_senf

07/01/2019 at 03:34PM

16
#276 - ixf / @ixfdv

07/05/2019 at 07:52PM

16
#277 - Bob Ren / @bobrenjc93

07/31/2019 at 08:26PM

16
#278 - Mr_Djez / @DjezMr

08/05/2019 at 08:38PM

16
#279 - vim_ninja / @NinjaVim

08/22/2019 at 04:15AM

16
#280 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:35PM

16
#281 - Paul Inc / @hiniol1982

08/24/2019 at 06:11PM

16
#282 - Jonathan Lozinski / @jlozinski

09/26/2019 at 04:27PM

16
#283 - cínicoycansino / @pgv958

09/27/2019 at 11:18AM

16
#284 - Lorenzo Bertolino / @lo_bertolino

10/09/2019 at 04:14PM

16
#285 - 0xNinja / @0x_Ninja

10/25/2019 at 08:33AM

16
#286 - skamgolf / @skamgolf

11/07/2019 at 03:10AM

16
#287 - pysnow530 / @pysnow530

11/19/2019 at 10:50AM

16
#288 - Magnus / @praktiskt

11/22/2019 at 06:50PM

16
#289 - Nicolas Pagny / @NicolasPagny

12/03/2019 at 04:11PM

16
#290 - Andrei Popescu / @AndreiTheory

12/09/2019 at 08:46PM

17
#291 - captain_morgan / @captain_morgan

09/18/2018 at 02:44PM

17
#292 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 08:49AM

17
#293 - vimgolf / @myspare307

09/25/2018 at 05:12AM

17
#294 - daniel / @daniel31464605

09/25/2018 at 01:21PM

17
#295 - PCS Solutions / @PeteSolutions

09/27/2018 at 06:30PM

17
#296 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#297 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM

17
#298 - Joel Schlosser / @joel_schlosser

10/03/2018 at 09:00PM

17
#299 - Florent Jaby / @Floby

10/09/2018 at 03:10PM

17
#300 - Jo / @Jo59893132

10/25/2018 at 05:39AM