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):
19
#631 - jenna why do i have to make this / @jenna_have

10/23/2019 at 11:25PM

19
#632 - Daniel Habib / @danielhvs

07/21/2020 at 10:03PM

19
#633 - Andrewana / @andrewanachan

02/12/2022 at 04:37AM

19
#634 - Nicolas Daval / @ndaval

01/10/2024 at 08:45PM

19
#635 - Ólafur Karl Stefánsson / @olafurkarl

04/13/2024 at 05:15AM

19
#636 - Ben Gadbois / @bengadbois

08/08/2024 at 05:16PM

19
#637 - Bader Almazmumi / @almazmumi

01/31/2025 at 01:23PM

20
#638 - Amir Rajan / @amirrajan

10/11/2018 at 08:14AM

20
#639 - Rossi / @mrossinek

12/04/2018 at 07:16PM

20
#640 - Vending Machine / @storyn26383

12/16/2018 at 06:57AM

20
#641 - Emanuele Aliverti / @memeAliverti

02/13/2019 at 02:37PM

20
#642 - Tanguy ⧓ Herrmann / @hashtang__

06/06/2019 at 09:20AM

20
#643 - Aos Dabbagh / @aosdabbagh

06/06/2019 at 04:48PM

20
#644 - JamesB41 / @JamesB41

06/06/2019 at 08:14PM

20
#645 - Wayne / @lilwayne15561

11/14/2020 at 06:59PM

20
#646 - Baptiste Mille-Mathias / @bmillemathias

12/14/2023 at 06:28PM

20
#647 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

03/08/2024 at 09:25AM

20
#648 - Larijohn Adorable / @ladorabl

10/16/2024 at 08:17PM

20
#649 - camillahundahl / @camillahundahl

01/13/2025 at 08:22PM

21
#650 - diego olivera / @alejo_olivera

09/19/2018 at 08:53PM

21
#651 - kyoyachuan / @kyoyachuan0626

10/03/2018 at 09:19AM

21
#652 - JonasS / @jonas42s

05/29/2019 at 11:57AM

21
#653 - excalipoor / @pawlrus

06/06/2019 at 08:28PM

21
#654 - David Nash / @david_nash

06/06/2019 at 10:54PM

21
#655 - Juan Francisco Bertona / @Weed1an

10/14/2019 at 02:34PM

21
#656 - Danko Milutinovic / @zebraReverse

05/08/2021 at 03:21PM

21
#657 - Sam Broughton / @samjbro

01/17/2024 at 04:19AM

21
#658 - Arsen Nuramatov / @anuramat

03/06/2024 at 05:12PM

21
#659 - Xiaoshubudao / @XiaoshuZ73684

08/23/2024 at 10:05AM

21
#660 - Katie Janzen / @347Online

11/17/2024 at 05:46AM