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

908 active golfers, 3988 entries

Leaderboard (lowest score wins):
39
#841 - 咸糖xiantang / @GIA917229015

07/09/2023 at 04:09PM

40
#842 - Thiago Becker / @beckert

08/25/2020 at 11:38AM

40
#843 - Christ / @Christ46234422

09/06/2020 at 06:32AM

41
#844 - freehaha / @freehaha

08/28/2019 at 05:14AM

41
#845 - bladehaze / @bladehaze

05/04/2020 at 07:31PM

42
#846 - Philip Stephenson / @philip_iv

07/19/2019 at 09:09PM

42
#847 - vesa / @XingfDu

01/14/2021 at 07:58AM

42
#848 - Ben Jervis / @benjervis

02/20/2024 at 11:20AM

43
#849 - Tom Smeding / @TomSmeding

11/05/2018 at 10:27PM

43
#850 - Matze / @ebaharilikult

11/20/2018 at 07:16AM

43
#851 - Ravi S Sinha / @ambidextrousTx

12/08/2020 at 03:20AM

44
#852 - Fabio Branquinho / @branquif

11/08/2018 at 12:36PM

44
#853 - Joe Francis / @lostapathy

01/13/2019 at 05:27PM

44
#854 - Bruce Park / @bpark0

03/11/2019 at 12:06AM

44
#855 - How It DO / @thatshowitdo

06/07/2019 at 03:19AM

44
#856 - Siddhartha [not giving away free coins] / @siddhartha_cryp

12/06/2019 at 08:57PM

44
#857 - SRINIVASU SALADI / @SRINIVASUS22587

02/11/2025 at 04:37AM

45
#858 - Mellow Tractor / @mellowtractor

06/19/2020 at 02:34PM

45
#859 - Jordan Pyott / @atidyshirt

12/22/2023 at 11:24PM

46
#860 - Why Am / @WhysDeCatOnFire

11/07/2018 at 07:08PM

46
#861 - Benjamin Pelletier / @benjipelletier

09/25/2019 at 01:52PM

46
#862 - Bharath / @Bharath15952517

12/19/2020 at 08:25AM

46
#863 - Michael Floßmann / @MFlossmann

02/27/2024 at 09:54AM

47
#864 - Calvin Fong / @LordyBaka

11/03/2018 at 10:58AM

47
#865 - Steffen / @Pions90

02/14/2020 at 06:44PM

47
#866 - Luca Iachini / @Codici89

09/05/2023 at 01:28PM

48
#867 - Ketan Agrawal / @_ketan0_

10/04/2018 at 03:26AM

48
#868 - Ainsley McGrath / @whole_grainsley

12/24/2018 at 07:18PM

48
#869 - MGJoe93 / @mgjoe93

03/06/2019 at 12:19PM

48
#870 - Vimfiz / @vimfiz

03/21/2019 at 12:20AM