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

297 active golfers, 1277 entries

Leaderboard (lowest score wins):
16
#151 - Jordan / @RiotChomey

09/21/2018 at 09:30PM

16
#152 - Jeff / @sir_wiggles3

09/24/2018 at 11:34PM

16
#153 - adeel hussain / @adeelhussain

09/25/2018 at 07:47AM

16
#154 - Bruce Adams / @bruceadams1054

10/08/2018 at 10:32AM

16
#155 - caplod / @caplod

10/16/2018 at 10:22PM

16
#156 - vg / @vg53210350

10/28/2018 at 06:42PM

16
#157 - Kasparas Lavrukaitis / @kaslvr

10/31/2018 at 04:27PM

16
#158 - Maas Lalani / @maaslalani

12/02/2018 at 08:54PM

16
#159 - lofoneax / @lofoneax

12/14/2018 at 10:17PM

16
#160 - Shafiq Jetha / @sjetha

12/18/2018 at 05:55PM

16
#161 - John Smith / @JohnSmi14480159

01/09/2019 at 10:45PM

16
#162 - Patrick Lavin / @LavinComputes

01/30/2019 at 05:21PM

16
#163 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 06:38AM

16
#164 - Alessio / @aleb1an

03/09/2019 at 10:02PM

16
#165 - 김형창 / @uVmEMZsCgcYvqZi

04/04/2019 at 02:36AM

16
#166 - Caleb Rollins / @CalebRollins1

05/16/2019 at 08:39PM

17
#167 - captain_morgan / @captain_morgan

09/18/2018 at 02:44PM

17
#168 - Daniel Morandini / @MorandiniDaniel

09/19/2018 at 08:49AM

17
#169 - vimgolf / @myspare307

09/25/2018 at 05:12AM

17
#170 - daniel / @daniel31464605

09/25/2018 at 01:21PM

17
#171 - PCS Solutions / @PeteSolutions

09/27/2018 at 06:30PM

17
#172 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#173 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM

17
#174 - Joel Schlosser / @joel_schlosser

10/03/2018 at 09:00PM

17
#175 - Florent Jaby / @Floby

10/09/2018 at 03:10PM

17
#176 - Jo / @Jo59893132

10/25/2018 at 05:39AM

17
#177 - Sxcy / @SxcyX

11/05/2018 at 03:35PM

17
#178 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:44PM

17
#179 - Angry Dev / @AngryDev7

12/01/2018 at 02:45PM

17
#180 - aka / @aaik4

12/23/2018 at 02:38AM