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 870 remaining solutions by signing in and submitting your own entry
#871 梁(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

871 active golfers, 3853 entries

Leaderboard (lowest score wins):
13
#271 - Sebastian Müller / @echsberde

09/20/2019 at 10:53PM

13
#272 - Miko / @_m_ik_o_

09/29/2019 at 03:48PM

13
#273 - Chen-Hung Wu / @utah12005

10/09/2019 at 09:33PM

13
#274 - kkscr / @kkscr1

10/13/2019 at 02:46PM

13
#275 - Lory / @Lory46845742

10/31/2019 at 03:05PM

13
#276 - Chris Covert / @covertcj

11/07/2019 at 08:23PM

13
#277 - Ebi / @ehan6

11/19/2019 at 08:22AM

13
#278 - bassnecter / @lothedr

11/23/2019 at 04:02PM

13
#279 - shota_ogswr / @shota_ogasawara

11/24/2019 at 02:45PM

13
#280 - fewfold / @fewfold

11/29/2019 at 04:08PM

13
#281 - HypoTech / @Obongoetco

12/08/2019 at 11:15AM

13
#282 - Maksim / @its_terra

01/01/2020 at 05:50PM

13
#283 - Jörg Meyer / @JoergMy

01/05/2020 at 05:20PM

13
#284 - lev / @nouvelliu

01/10/2020 at 08:11AM

13
#285 - Honza Uhlík / @JanUhlik

01/30/2020 at 07:40PM

13
#286 - Emil / @emilklindt

02/08/2020 at 09:29AM

13
#287 - Robert Mosher / @rcmosher

02/14/2020 at 10:19AM

13
#288 - KingYames / @JamesZeHunter

02/17/2020 at 04:23AM

13
#289 - TimMcGuire / @mcguire

02/18/2020 at 10:22AM

13
#290 - Chris League / @chrisleague

02/23/2020 at 08:20PM

13
#291 - vimgolfplayer92 / @vimgolfplayer92

02/29/2020 at 11:47AM

13
#292 - eshel / @EshelBM

02/29/2020 at 01:36PM

13
#293 - Mike Wortin / @MWortin

02/29/2020 at 06:15PM

13
#294 - Renns / @Renns95250521

03/06/2020 at 07:34PM

13
#295 - Paul Parker / @PaulDesmoParker

03/12/2020 at 04:21AM

13
#296 - BnnGolfer / @BnnGolfer

03/21/2020 at 07:47PM

13
#297 - vvaannaa3 / @vvaannaa3

03/23/2020 at 12:38PM

13
#298 - Rodrigo V. Lopes / @rodvlopes

04/02/2020 at 11:59PM

13
#299 - Deepak Talan / @d02d33pak

04/08/2020 at 05:52AM

13
#300 - RaylanFox / @RaylanFox

04/10/2020 at 01:09PM