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

872 active golfers, 3863 entries

Leaderboard (lowest score wins):
15
#451 - Yo / @Newbiejailer

05/28/2021 at 09:18AM

15
#452 - Jean George / @JeanGeo20504212

09/07/2021 at 11:25PM

15
#453 - x03n046 / @x03n046

05/13/2022 at 08:36AM

15
#454 - vimgolfaccfekxh / @vimgolfaccfekxh

10/30/2022 at 03:40PM

15
#455 - James / @Dronak

11/10/2022 at 07:54PM

15
#456 - jonas-grobe / @jonas-grobe

02/03/2024 at 03:46PM

15
#457 - mau-mauricelim / @mau-mauricelim

08/22/2024 at 03:05PM

16
#458 - DustVoice / @DustVoice

09/17/2018 at 09:51PM

16
#459 - Roch Mirabeau / @roch_kiss

09/19/2018 at 11:55PM

16
#460 - Sorrento Huang / @SorrentoHuang

09/20/2018 at 10:29AM

16
#461 - Jordan / @RiotChomey

09/21/2018 at 09:30PM

16
#462 - Jeff / @sir_wiggles3

09/24/2018 at 11:34PM

16
#463 - adeel hussain / @adeelhussain

09/25/2018 at 07:47AM

16
#464 - Bruce Adams / @bruceadams1054

10/08/2018 at 10:32AM

16
#465 - caplod / @caplod

10/16/2018 at 10:22PM

16
#466 - vg / @vg53210350

10/28/2018 at 06:42PM

16
#467 - Kasparas Lavrukaitis / @kaslvr

10/31/2018 at 04:27PM

16
#468 - Maas Lalani / @maaslalani

12/02/2018 at 08:54PM

16
#469 - lofoneax / @lofoneax

12/14/2018 at 10:17PM

16
#470 - Shafiq Jetha / @sjetha

12/18/2018 at 05:55PM

16
#471 - John Smith / @JohnSmi14480159

01/09/2019 at 10:45PM

16
#472 - Patrick Lavin / @LavinComputes

01/30/2019 at 05:21PM

16
#473 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 06:38AM

16
#474 - Alessio / @aleb1an

03/09/2019 at 10:02PM

16
#475 - 김형창 / @uVmEMZsCgcYvqZi

04/04/2019 at 02:36AM

16
#476 - Caleb Rollins / @CalebRollins1

05/16/2019 at 08:39PM

16
#477 - marco / @helmetk

06/06/2019 at 01:47PM

16
#478 - etherflow / @etherfl0w

06/06/2019 at 06:23PM

16
#479 - David / @Liimero

06/06/2019 at 06:55PM

16
#480 - i_orykhivskyi / @i_orykh

06/08/2019 at 03:37PM