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

170 active golfers, 672 entries

Leaderboard (lowest score wins):
12
#1 - BaffaloP 🐃🎨 / @bbaffalopp

11/15/2018 at 10:03AM

12
#2 - Bruno Cunha / @bruncun

11/17/2018 at 07:37PM

12
#3 - Dax / @zacoxi

11/20/2018 at 01:18AM

12
#4 - Jonathan Cabezas / @John_Harkan

11/26/2018 at 05:16PM

12
#5 - band / @band26376522

12/04/2018 at 08:23PM

12
#6 - Anant Mishra / @anantanni22

12/08/2018 at 03:30PM

13
#7 - Jon Krause / @jkrause314

09/18/2018 at 05:39AM

13
#8 - Smylers / @Smylers2

09/18/2018 at 08:48AM

13
#9 - John Braxler / @braxler

09/18/2018 at 01:34PM

13
#10 - Timothée Gauthier / @zmf_tim

09/18/2018 at 08:00PM

13
#11 - Turkey Man / @lvturkeyman

09/19/2018 at 09:45AM

13
#12 - Epecb / @BceEpecb

09/19/2018 at 05:21PM

13
#13 - Yudi Matsuzake / @yudimatsuzake

09/19/2018 at 11:37PM

13
#14 - Harm te Hennepe / @HrmtH

09/20/2018 at 11:29AM

13
#15 - Saki Gw / @Sakigw

09/20/2018 at 01:28PM

13
#16 - Gayan Munasinghe / @gayanm

09/21/2018 at 11:40PM

13
#17 - Koo Zhengqun / @zhengqunkoo

09/24/2018 at 04:26AM

13
#18 - bignos / @bignos2

09/24/2018 at 10:02AM

13
#19 - konankun / @__konankun

09/25/2018 at 09:53AM

13
#20 - Pico / @Elarique_Swift

09/29/2018 at 08:33PM

13
#21 - DoubleIA / @IaDouble

09/30/2018 at 09:15AM

13
#22 - Will / @VVi11_I_AM

09/30/2018 at 07:57PM

13
#23 - Keldwik Chaldain / @Suskeyhose

10/03/2018 at 02:00AM

13
#24 - John Oleksowicz / @JohnOlek

10/05/2018 at 02:50PM

13
#25 - nobody that important / @nobodythatimpo2

10/07/2018 at 11:15PM

13
#26 - Taylor Shane Hawkins / @underempire

10/08/2018 at 03:03PM

13
#27 - Андрей / @777Android777

10/08/2018 at 06:46PM

13
#28 - towc / @MateiCopot

10/09/2018 at 09:45AM

13
#29 - Brendan Maginnis / @BrendanMaginni1

10/09/2018 at 10:12PM

13
#30 - Benjamin Kiesl / @BenjaminKiesl

10/10/2018 at 09:44AM