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 212 remaining solutions by signing in and submitting your own entry
#213 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

213 active golfers, 871 entries

Leaderboard (lowest score wins):
17
#121 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 08:49AM

17
#122 - vimgolf / @myspare307

09/25/2018 at 05:12AM

17
#123 - daniel / @daniel31464605

09/25/2018 at 01:21PM

17
#124 - PCS Solutions / @PeteSolutions

09/27/2018 at 06:30PM

17
#125 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#126 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM

17
#127 - Joel Schlosser / @joel_schlosser

10/03/2018 at 09:00PM

17
#128 - Florent Jaby / @Floby

10/09/2018 at 03:10PM

17
#129 - Jo / @Jo59893132

10/25/2018 at 05:39AM

17
#130 - Sxcy / @SxcyX

11/05/2018 at 03:35PM

17
#131 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:44PM

17
#132 - Angry Dev / @AngryDev7

12/01/2018 at 02:45PM

17
#133 - aka / @aaik4

12/23/2018 at 02:38AM

17
#134 - sstar / @sstar60015687

12/26/2018 at 09:36AM

17
#135 - Brome / @Brome20887421

01/04/2019 at 09:27PM

17
#136 - Benny / @_originalsouth_

01/05/2019 at 10:09PM

18
#137 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#138 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#139 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#140 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#141 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

19
#142 - S33 Dunda / @s33dUnda

09/18/2018 at 08:05PM

19
#143 - Sebastien Mesili / @seb_kr

09/29/2018 at 03:38AM

19
#144 - a / @UseForVim

10/03/2018 at 01:13PM

19
#145 - robinro / @robinro

10/05/2018 at 01:16PM

19
#146 - Paul Inc / @hiniol1982

10/18/2018 at 06:54PM

19
#147 - 茶々豆 / @chachamame0420

10/19/2018 at 12:37PM

19
#148 - Commi / @hellocommi

11/25/2018 at 11:30PM

19
#149 - Luis Rodriguez / @luisthecoder

01/03/2019 at 04:13AM

20
#150 - Amir Rajan / @amirrajan

10/11/2018 at 08:14AM