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 871 remaining solutions by signing in and submitting your own entry
#872 梁(Liang リャン) / @starduliang - Score: 208 - 03/01/20 @ 11:16
jk<C-V>jjjjxlllllllllllllllll<C-V>jjjjp<Esc><Esc>uh<C-V>jjjjp<Esc>uu<C-V>jjjjxlllllllllllhhhhf9h<C-V>jjjjp<Esc>u<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>ul<C-V>jjjjI,<Esc><Esc><Esc>jjjjjl<C-V>jjjjx<Esc>bbbbbbbbbbbbbbbbl<C-V>jjjjI,<Esc>jjjjjj:w<CR>:wq<CR>

0 comments


Created by: @DustVoice

872 active golfers, 3863 entries

Leaderboard (lowest score wins):
13
#241 - k24w24 / @k24w24

03/20/2019 at 03:47PM

13
#242 - wanghbxxxx / @wanghbxxxx

04/04/2019 at 02:23AM

13
#243 - Norbert / @mullno

04/18/2019 at 07:26PM

13
#244 - Bruce Woodward / @b00ffer

04/21/2019 at 06:48PM

13
#245 - ow / @ow34480012

04/30/2019 at 07:46PM

13
#246 - Arno / @arnoxmp

05/10/2019 at 07:35AM

13
#247 - Daniel Hakimian / @danrafhak

05/15/2019 at 03:50PM

13
#248 - alexandrasou / @alexandrasou2

05/22/2019 at 12:53PM

13
#249 - mkaminaga / @mkmng3

06/05/2019 at 08:47AM

13
#250 - Kris Ezra / @kris_ezra

06/06/2019 at 05:16AM

13
#251 - Miles Edland / @ShutUpMiles

06/06/2019 at 06:25AM

13
#252 - Kristian Haug / @krimhaug

06/06/2019 at 07:13AM

13
#253 - Joo Ming / @JooMingJoo

06/06/2019 at 08:29AM

13
#254 - shay-tal / @shaytal

06/06/2019 at 09:55AM

13
#255 - Federico Ramirez / @gosukiwi

06/06/2019 at 03:20PM

13
#256 - Sean Johnston / @esran

06/06/2019 at 04:53PM

13
#257 - Ben Williams / @benw

06/06/2019 at 06:51PM

13
#258 - Khoyobegenn / @Khoyobegenn

06/07/2019 at 02:15AM

13
#259 - Andre Merzky / @AndreMerzky

06/07/2019 at 05:30AM

13
#260 - Graeme Smith / @InstaGraeme

06/07/2019 at 09:06PM

13
#261 - zealotrush / @zealotrush

06/12/2019 at 05:52AM

13
#262 - Martijn Brekelmans / @Azeirah

06/17/2019 at 05:51PM

13
#263 - Giggles MacChumpsworth / @macchumpsworth

07/03/2019 at 03:18AM

13
#264 - garry quested / @GQuested

07/03/2019 at 11:59AM

13
#265 - hielke / @hielke24840788

07/07/2019 at 11:36AM

13
#266 - Nathan Knox / @the_nathan_knox

07/11/2019 at 02:24PM

13
#267 - りんご / @ringo9971

08/06/2019 at 08:54AM

13
#268 - Bradley M. Small / @BradleySmall

08/10/2019 at 04:28AM

13
#269 - Marco💾 / @markomannux

08/24/2019 at 08:36PM

13
#270 - Baine Wedlock / @BaineWedlock

09/12/2019 at 09:00AM