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 294 remaining solutions by signing in and submitting your own entry
#295 minjikim / @minjiki38685196 - Score: 92 - 10/10/18 @ 13:04
:<Up><Up><Up>g<Up><Up>/<BS>!/g<BS><CR>:g/<BS>!/^,/normal ^n<BS>0<BS>a,<BS><BS><BS>$x^a,<CR>:<Up><BS><BS><BS><BS><BS>^x$i,<CR>u:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><CR>:<0xe3><0x85><0x88><0xe3><0x85><0x82><BS><BS>wq<CR>

0 comments


Created by: @DustVoice

295 active golfers, 1261 entries

Leaderboard (lowest score wins):
26
#241 - rvnjsphdmn / @rvnjsphdmn

05/08/2019 at 02:04PM

27
#242 - Lars Haalck / @larshulk

10/05/2018 at 02:26PM

27
#243 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 11:20PM

27
#244 - Sören Schellhoff / @Jackokomm

11/18/2018 at 03:26PM

27
#245 - Bumazhka / @Bumazhka

02/09/2019 at 10:46AM

27
#246 - Ng Sek Long / @NgSekLong

02/14/2019 at 07:09AM

27
#247 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 06:17PM

28
#248 - Sam Kim / @samkimhis

10/11/2018 at 06:28AM

28
#249 - greengreen / @greengr09073862

11/15/2018 at 04:26AM

28
#250 - Juliette but spooky / @namebrandloser

11/16/2018 at 08:40PM

28
#251 - xer0.5ive / @Bibekshah

01/23/2019 at 02:51PM

28
#252 - Jiho Noh / @JihoNoh

04/01/2019 at 11:08PM

29
#253 - Dax / @daaawx

10/15/2018 at 06:35PM

29
#254 - Andre Cato / @DreBear800

10/30/2018 at 01:49AM

29
#255 - Alexander Popov / @Alexand01782341

03/10/2019 at 08:21PM

30
#256 - Zenghanzhang / @hzengroger

11/10/2018 at 06:32AM

31
#257 - gsvba / @gsvba

09/19/2018 at 08:29PM

31
#258 - Tojo Chacko / @tojochacko

09/21/2018 at 05:05AM

31
#259 - Shashank G Hegde / @shashankghegde

10/07/2018 at 07:03PM

31
#260 - Eli Edrian Tan / @eeveeedriantan

10/11/2018 at 12:46AM

31
#261 - m472 / @m4729

10/27/2018 at 12:07AM

31
#262 - Shunichi Kanade / @shunkana

11/18/2018 at 01:40AM

31
#263 -  Martijn Engler / @MartijnEngler

12/31/2018 at 07:58PM

31
#264 - wrglprmft / @wrglprmft

01/19/2019 at 08:58PM

31
#265 - royaso / @royaso

04/12/2019 at 07:02AM

31
#266 - ImaNotgate / @INotgate

04/28/2019 at 10:37PM

33
#267 - Brent Woo / @BrentPWoo

10/01/2018 at 07:40PM

34
#268 - Jurica / @Jurica34581259

11/14/2018 at 11:16PM

35
#269 - Raul / @Raul50174499

04/23/2019 at 05:38AM

36
#270 - throwaway / @throwaw77650361

03/05/2019 at 07:39PM