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

636 active golfers, 2824 entries

Leaderboard (lowest score wins):
17
#421 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 03:03AM

17
#422 - Joren Van Hee / @jorenvanhee

11/25/2019 at 10:33AM

17
#423 - jn / @j1357924

12/03/2019 at 04:22AM

17
#424 - Dan Kilman / @dan_kilman

12/18/2019 at 08:40PM

17
#425 - None / @sh1chuang

12/30/2019 at 12:55PM

17
#426 - Victor Chen / @VictorC89422342

01/10/2020 at 04:47PM

17
#427 - rr / @rodgeur31

01/29/2020 at 09:29PM

17
#428 - perTheGolfer / @GolferPer

02/15/2020 at 11:48PM

17
#429 - James Rayman / @jamsramen

03/04/2020 at 07:57PM

17
#430 - fedja golf / @FedjaGolf

04/13/2020 at 02:42AM

17
#431 - Rob Pilling / @bobrippling

04/28/2020 at 09:55AM

17
#432 - edwardbaeg / @edwardbaeg

04/30/2020 at 12:23AM

17
#433 - Mack Hutsell / @sellshuts

05/24/2020 at 07:08PM

17
#434 - RockerZZY / @rocker_zzy

05/27/2020 at 04:57AM

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

06/16/2020 at 08:10AM

17
#436 - Di Liu / @Skyerliu

06/20/2020 at 06:51PM

18
#437 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#438 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#439 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#440 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#441 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

18
#442 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

18
#443 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:24PM

18
#444 - pebra / @pebrabb

05/10/2019 at 11:42AM

18
#445 - Abe Cede / @A_be_Cede

06/06/2019 at 12:25PM

18
#446 - dtjong / @dtjong2

06/07/2019 at 10:01PM

18
#447 - seul / @seul15987381

06/20/2019 at 11:09AM

18
#448 - brypto / @hiimbenjy

10/01/2019 at 02:01AM

18
#449 - ENSORIZATION / @ensorization

11/01/2019 at 11:22PM

18
#450 - Halfdan S. Bechmann / @HalfdanIsLame

01/17/2020 at 12:32PM