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 892 remaining solutions by signing in and submitting your own entry
#893 梁(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

893 active golfers, 3943 entries

Leaderboard (lowest score wins):
17
#571 - Ralph / @Ralph59017303

09/08/2019 at 10:02AM

17
#572 - Max Williams / @notmaxbutmax

10/16/2019 at 12:06AM

17
#573 - Jonathan Medwig / @jmedwig

10/22/2019 at 05:40PM

17
#574 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 03:03AM

17
#575 - Joren Van Hee / @jorenvanhee

11/25/2019 at 10:33AM

17
#576 - jn / @j1357924

12/03/2019 at 04:22AM

17
#577 - Dan Kilman / @dan_kilman

12/18/2019 at 08:40PM

17
#578 - None / @sh1chuang

12/30/2019 at 12:55PM

17
#579 - Victor Chen / @VictorC89422342

01/10/2020 at 04:47PM

17
#580 - rr / @rodgeur31

01/29/2020 at 09:29PM

17
#581 - perTheGolfer / @GolferPer

02/15/2020 at 11:48PM

17
#582 - James Rayman / @jamsramen

03/04/2020 at 07:57PM

17
#583 - fedja golf / @fedjagolf

04/13/2020 at 02:42AM

17
#584 - edwardbaeg / @edwardbaeg

04/30/2020 at 12:23AM

17
#585 - Mack Hutsell / @sellshuts

05/24/2020 at 07:08PM

17
#586 - RockerZZY / @rocker_zzy

05/27/2020 at 04:57AM

17
#587 - 鏡崎ましろ / @KagamisakiMsr

06/16/2020 at 08:10AM

17
#588 - Di Liu / @Skyerliu

06/20/2020 at 06:51PM

17
#589 - abhijeet patil / @abhijeetptl5

09/03/2020 at 12:57PM

17
#590 - The Valencian Dev / @thevalenciandev

10/12/2020 at 12:30PM

17
#591 - roy twt / @roytwt1

10/18/2020 at 12:43PM

17
#592 - Demian Martinez / @demianuco

11/02/2020 at 12:47AM

17
#593 - vimspam / @vimspam

11/09/2020 at 09:29PM

17
#594 - __VimGolfer__ / @VimGolfer19

11/27/2020 at 07:13AM

17
#595 - John Doe / @JohnDoe75830353

12/22/2020 at 02:11PM

17
#596 - Matt Sartwell / @mesartwell

02/17/2023 at 03:40AM

17
#597 - Gatu llambión / @gatu_llambion

08/22/2023 at 10:04PM

17
#598 - EVVNYR / @EVVNYR

09/20/2023 at 08:32PM

17
#599 - Jan Troest / @jan_troest

10/30/2023 at 10:13AM

17
#600 - Matthew Craig / @Matthew-Craig01

03/17/2024 at 02:17PM