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 482 remaining solutions by signing in and submitting your own entry
#483 Matej Stuchlik / @mstuchli - Score: 159 - 06/06/19 @ 16:21
<C-V>jjjjxpl.u.uuu<C-V>jjjj<Esc><Esc>kkkkqq<C-V>jjjjxpql@ql@@l@@l@@l@@l@@l@@l@@jjjjjhhhhhhhhhhhhhhhhhhhhllqq<C-V>jjjjxhhpqlll@qlll@@lll@@lll@@lll@@lll@@lll@@lll@@u@@u<C-V>jjjjxhp<Esc>:w<CR>:wqa<CR>

0 comments


Created by: @DustVoice

483 active golfers, 2090 entries

Leaderboard (lowest score wins):
13
#151 - Federico Ramirez / @gosukiwi

06/06/2019 at 03:20PM

13
#152 - Sean Johnston / @esran

06/06/2019 at 04:53PM

13
#153 - Ben Williams / @benw

06/06/2019 at 06:51PM

13
#154 - Khoyobegenn / @Khoyobegenn

06/07/2019 at 02:15AM

13
#155 - Andre Merzky / @AndreMerzky

06/07/2019 at 05:30AM

13
#156 - Graeme Smith / @InstaGraeme

06/07/2019 at 09:06PM

13
#157 - zealotrush / @zealotrush

06/12/2019 at 05:52AM

13
#158 - Martijn Brekelmans / @Azeirah

06/17/2019 at 05:51PM

13
#159 - Giggles MacChumpsworth / @macchumpsworth

07/03/2019 at 03:18AM

13
#160 - garry quested / @GQuested

07/03/2019 at 11:59AM

13
#161 - hielke / @hielke24840788

07/07/2019 at 11:36AM

13
#162 - Nathan Knox / @the_nathan_knox

07/11/2019 at 02:24PM

13
#163 - りんご / @ringo9971

08/06/2019 at 08:54AM

13
#164 - Bradley M. Small / @BradleySmall

08/10/2019 at 04:28AM

13
#165 - Marco Mannucci / @markomannux

08/24/2019 at 08:36PM

13
#166 - Baine Wedlock / @BaineWedlock

09/12/2019 at 09:00AM

13
#167 - Abner jr / @Abnerjr19

09/15/2019 at 01:30PM

13
#168 - Sebastian Müller / @echsberde

09/20/2019 at 10:53PM

13
#169 - Miko / @_m_ik_o_

09/29/2019 at 03:48PM

13
#170 - Chen-Hung Wu / @utah12005

10/09/2019 at 09:33PM

13
#171 - kkscr / @kkscr1

10/13/2019 at 02:46PM

13
#172 - Lory / @Lory46845742

10/31/2019 at 03:05PM

13
#173 - Chris Covert / @covertcj

11/07/2019 at 08:23PM

14
#174 - Robin De Mol / @RobinDeMol

09/18/2018 at 01:42PM

14
#175 - Steve Bitner / @fourbitbots

09/19/2018 at 01:54AM

14
#176 - Anoop Kumar / @anooplive

09/19/2018 at 09:30PM

14
#177 - David Gustavsson / @mrGustaphe

09/20/2018 at 11:38AM

14
#178 - Arijus / @argshook

09/21/2018 at 06:45AM

14
#179 - jairoandre / @jairoandre

09/26/2018 at 01:06PM

14
#180 - golgi / @gloggyapparatus

10/01/2018 at 11:12PM