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

488 active golfers, 2109 entries

Leaderboard (lowest score wins):
16
#241 - Sorrento Huang / @SorrentoHuang

09/20/2018 at 10:29AM

16
#242 - Jordan / @RiotChomey

09/21/2018 at 09:30PM

16
#243 - Jeff / @sir_wiggles3

09/24/2018 at 11:34PM

16
#244 - adeel hussain / @adeelhussain

09/25/2018 at 07:47AM

16
#245 - Bruce Adams / @bruceadams1054

10/08/2018 at 10:32AM

16
#246 - caplod / @caplod

10/16/2018 at 10:22PM

16
#247 - vg / @vg53210350

10/28/2018 at 06:42PM

16
#248 - Kasparas Lavrukaitis / @kaslvr

10/31/2018 at 04:27PM

16
#249 - Maas Lalani / @maaslalani

12/02/2018 at 08:54PM

16
#250 - lofoneax / @lofoneax

12/14/2018 at 10:17PM

16
#251 - Shafiq Jetha / @sjetha

12/18/2018 at 05:55PM

16
#252 - John Smith / @JohnSmi14480159

01/09/2019 at 10:45PM

16
#253 - Patrick Lavin / @LavinComputes

01/30/2019 at 05:21PM

16
#254 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 06:38AM

16
#255 - Alessio / @aleb1an

03/09/2019 at 10:02PM

16
#256 - 김형창 / @uVmEMZsCgcYvqZi

04/04/2019 at 02:36AM

16
#257 - Caleb Rollins / @CalebRollins1

05/16/2019 at 08:39PM

16
#258 - marco / @helmetk

06/06/2019 at 01:47PM

16
#259 - etherflow / @etherfl0w

06/06/2019 at 06:23PM

16
#260 - David / @Liimero

06/06/2019 at 06:55PM

16
#261 - i_orykhivskyi / @i_orykh

06/08/2019 at 03:37PM

16
#262 - たぬぽん / @eJYwMbymauWKF4B

06/11/2019 at 11:10AM

16
#263 - majo senf / @majo_senf

07/01/2019 at 03:34PM

16
#264 - ixf / @ixfdv

07/05/2019 at 07:52PM

16
#265 - Bob Ren / @bobrenjc93

07/31/2019 at 08:26PM

16
#266 - Mr_Djez / @DjezMr

08/05/2019 at 08:38PM

16
#267 - vim_ninja / @NinjaVim

08/22/2019 at 04:15AM

16
#268 - Simon Wilkinson / @simondwilkinson

08/23/2019 at 09:35PM

16
#269 - Paul Inc / @hiniol1982

08/24/2019 at 06:11PM

16
#270 - Jonathan Lozinski / @jlozinski

09/26/2019 at 04:27PM