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):
12
#91 - Kyle X. Clark / @KyXr_Clark

01/27/2020 at 01:52AM

12
#92 - Sushrut Shirole / @sushrutshirole

02/01/2020 at 01:03AM

12
#93 - おねさわ / @yama846

02/02/2020 at 01:57PM

12
#94 - Jean-Francois Parent / @hacker_pyrat

02/10/2020 at 03:29PM

12
#95 - howanto / @ho_wan_

02/20/2020 at 12:32AM

12
#96 - Anthony BERNARD / @TweetTontony

02/20/2020 at 08:19PM

12
#97 - Mushan Yang / @mushanyoung

02/26/2020 at 05:32AM

12
#98 - golferN / @golferN3

02/27/2020 at 06:23PM

12
#99 - countime / @countime1

03/05/2020 at 09:16AM

12
#100 - Niklas Ydebäck / @Ydebaeck

03/16/2020 at 10:55PM

12
#101 - Marco / @Marco24456514

03/22/2020 at 12:11PM

12
#102 - Lee Kian Tat Ken / @thekingtat

03/29/2020 at 03:42PM

12
#103 - Oleg / @colega

04/01/2020 at 07:35AM

12
#104 - edvrds / @edvrds

04/14/2020 at 10:10AM

12
#105 - Moatvald / @moatvald

04/16/2020 at 12:38PM

12
#106 - せいほう / @FICSQF

04/22/2020 at 02:26AM

12
#107 - John Sumner / @rjsumner

04/29/2020 at 07:45PM

12
#108 - Arthur Goodman / @ArthurGoodman3

04/30/2020 at 08:01AM

12
#109 - kashikasitaro / @kashikasitaro

05/09/2020 at 05:37AM

12
#110 - Atzz / @AtzzCokeK

05/09/2020 at 05:42AM

12
#111 - Quentin Leroy / @qnleroy

05/13/2020 at 12:25PM

12
#112 - 于吉星 / @fishermryn

05/25/2020 at 08:46AM

12
#113 - Valdimar / @genkobar

06/01/2020 at 11:21PM

12
#114 - Robberechts Arne / @ArneRobberechts

06/15/2020 at 04:10PM

12
#115 - smlbrngr / @smlbrngr

06/16/2020 at 11:24AM

12
#116 - speisz / @speiszc

06/27/2020 at 10:35PM

12
#117 - Jan Sturm / @JanSturm77

07/03/2020 at 05:44PM

12
#118 - 大矢元海 / @008Genkai

07/07/2020 at 08:13PM

12
#119 - Vital Wang / @wang_vital

07/12/2020 at 06:14PM

12
#120 - PK / @pkeugine

07/26/2020 at 01:49AM