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 615 remaining solutions by signing in and submitting your own entry
#616 梁(Liang リャン) / @starduliang - Score: 208 - 03/01/20 @ 11:16
jk<C-V>jjjjxlllllllllllllllll<C-V>jjjjp<Esc><Esc>uh<C-V>jjjjp<Esc>uu<C-V>jjjjxlllllllllllhhhhf9h<C-V>jjjjp<Esc>u<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>ul<C-V>jjjjI,<Esc><Esc><Esc>jjjjjl<C-V>jjjjx<Esc>bbbbbbbbbbbbbbbbl<C-V>jjjjI,<Esc>jjjjjj:w<CR>:wq<CR>

0 comments


Created by: @DustVoice

616 active golfers, 2711 entries

Leaderboard (lowest score wins):
16
#331 - Alessio / @aleb1an

03/09/2019 at 10:02PM

16
#332 - 김형창 / @uVmEMZsCgcYvqZi

04/04/2019 at 02:36AM

16
#333 - Caleb Rollins / @CalebRollins1

05/16/2019 at 08:39PM

16
#334 - marco / @helmetk

06/06/2019 at 01:47PM

16
#335 - etherflow / @etherfl0w

06/06/2019 at 06:23PM

16
#336 - David / @Liimero

06/06/2019 at 06:55PM

16
#337 - i_orykhivskyi / @i_orykh

06/08/2019 at 03:37PM

16
#338 - たぬぽん / @eJYwMbymauWKF4B

06/11/2019 at 11:10AM

16
#339 - majo senf / @majo_senf

07/01/2019 at 03:34PM

16
#340 - ixf / @ixfdv

07/05/2019 at 07:52PM

16
#341 - Bob Ren / @bobrenjc93

07/31/2019 at 08:26PM

16
#342 - Mr_Djez / @DjezMr

08/05/2019 at 08:38PM

16
#343 - vim_ninja / @NinjaVim

08/22/2019 at 04:15AM

16
#344 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:35PM

16
#345 - Paul Inc / @hiniol1982

08/24/2019 at 06:11PM

16
#346 - Jonathan Lozinski / @jlozinski

09/26/2019 at 04:27PM

16
#347 - cínicoycansino / @pgv958

09/27/2019 at 11:18AM

16
#348 - Lorenzo Bertolino / @lo_bertolino

10/09/2019 at 04:14PM

16
#349 - 0xNinja / @0x_Ninja

10/25/2019 at 08:33AM

16
#350 - skamgolf / @skamgolf

11/07/2019 at 03:10AM

16
#351 - pysnow530 / @pysnow530

11/19/2019 at 10:50AM

16
#352 - Magnus / @praktiskt

11/22/2019 at 06:50PM

16
#353 - Nicolas Pagny / @NicolasPagny

12/03/2019 at 04:11PM

16
#354 - Andrei Popescu / @AndreiTheory

12/09/2019 at 08:46PM

16
#355 - Jason Neylon / @jasonneylon

12/17/2019 at 07:54PM

16
#356 - James Casey / @hanavi

12/21/2019 at 02:53AM

16
#357 - く / @noblack_nolife

01/22/2020 at 03:42AM

16
#358 - Pham Tuan Anh / @anhpt379

02/17/2020 at 03:52AM

16
#359 - Bitt Faulk / @bittfaulk

02/20/2020 at 09:38PM

16
#360 - Sean Dewar / @seandewar

03/13/2020 at 05:58PM