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

532 active golfers, 2311 entries

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

10/16/2018 at 10:22PM

16
#272 - vg / @vg53210350

10/28/2018 at 06:42PM

16
#273 - Kasparas Lavrukaitis / @kaslvr

10/31/2018 at 04:27PM

16
#274 - Maas Lalani / @maaslalani

12/02/2018 at 08:54PM

16
#275 - lofoneax / @lofoneax

12/14/2018 at 10:17PM

16
#276 - Shafiq Jetha / @sjetha

12/18/2018 at 05:55PM

16
#277 - John Smith / @JohnSmi14480159

01/09/2019 at 10:45PM

16
#278 - Patrick Lavin / @LavinComputes

01/30/2019 at 05:21PM

16
#279 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 06:38AM

16
#280 - Alessio / @aleb1an

03/09/2019 at 10:02PM

16
#281 - 김형창 / @uVmEMZsCgcYvqZi

04/04/2019 at 02:36AM

16
#282 - Caleb Rollins / @CalebRollins1

05/16/2019 at 08:39PM

16
#283 - marco / @helmetk

06/06/2019 at 01:47PM

16
#284 - etherflow / @etherfl0w

06/06/2019 at 06:23PM

16
#285 - David / @Liimero

06/06/2019 at 06:55PM

16
#286 - i_orykhivskyi / @i_orykh

06/08/2019 at 03:37PM

16
#287 - たぬぽん / @eJYwMbymauWKF4B

06/11/2019 at 11:10AM

16
#288 - majo senf / @majo_senf

07/01/2019 at 03:34PM

16
#289 - ixf / @ixfdv

07/05/2019 at 07:52PM

16
#290 - Bob Ren / @bobrenjc93

07/31/2019 at 08:26PM

16
#291 - Mr_Djez / @DjezMr

08/05/2019 at 08:38PM

16
#292 - vim_ninja / @NinjaVim

08/22/2019 at 04:15AM

16
#293 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:35PM

16
#294 - Paul Inc / @hiniol1982

08/24/2019 at 06:11PM

16
#295 - Jonathan Lozinski / @jlozinski

09/26/2019 at 04:27PM

16
#296 - cínicoycansino / @pgv958

09/27/2019 at 11:18AM

16
#297 - Lorenzo Bertolino / @lo_bertolino

10/09/2019 at 04:14PM

16
#298 - 0xNinja / @0x_Ninja

10/25/2019 at 08:33AM

16
#299 - skamgolf / @skamgolf

11/07/2019 at 03:10AM

16
#300 - pysnow530 / @pysnow530

11/19/2019 at 10:50AM