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

893 active golfers, 3943 entries

Leaderboard (lowest score wins):
13
#331 - ErQ325 / @EQ325

11/21/2020 at 05:55AM

13
#332 - roudens / @roudens2

12/05/2020 at 03:01PM

13
#333 - 영훈 / @odjfnrtm

12/29/2020 at 03:07PM

13
#334 - Duncan / @Duncan31503119

01/06/2021 at 04:18AM

13
#335 - Anh Duc TRAN / @__OwlBlaster__

01/09/2021 at 03:47PM

13
#336 - Ben Simmons / @Simmons_Ben

01/20/2021 at 03:27PM

13
#337 - Andreas Siegrist / @andreaszwei

01/21/2021 at 06:29PM

13
#338 - OtterPy / @OtterPy

01/27/2021 at 09:53AM

13
#339 - der tanzbaer / @der_tanzbaer

03/13/2021 at 03:18PM

13
#340 - Michel Viktor / @tomkpz

08/08/2021 at 10:27PM

13
#341 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 02:05AM

13
#342 - Youssef Magdy / @youssef_magdy29

04/28/2022 at 12:16AM

13
#343 - Alex / @AlexanderHeatl2

07/06/2022 at 11:42PM

13
#344 - Andrew Liu / @AndrewL45936893

09/09/2022 at 03:45AM

13
#345 - z00master / @z00master

09/09/2022 at 04:48PM

13
#346 - Alexander Curtis / @AlexOnCode

03/24/2023 at 03:22PM

13
#347 - James Reading / @bowly_jim

04/11/2023 at 01:40PM

13
#348 - Aayush Dutt / @AayushDutt

07/10/2023 at 04:50PM

13
#349 - Lex Romanov / @feax_ru

07/28/2023 at 10:46AM

13
#350 - Luoyb / @Luoyb

11/03/2023 at 06:52AM

13
#351 - Steve Shi / @steveshi7

02/10/2024 at 07:38AM

13
#352 - Jye / @jyesawtellrickson

04/17/2024 at 08:23AM

13
#353 - luke37842 / @luke37842

05/18/2024 at 03:15PM

13
#354 - SanderHestvik / @SanderHestvik

06/15/2024 at 05:37PM

13
#355 - Stanley F / @sfo

07/30/2024 at 07:39AM

13
#356 - Victor Ramirez de la Corte / @Virako

08/27/2024 at 08:44AM

13
#357 - ingonerd / @ingonerd

09/02/2024 at 07:36AM

13
#358 - Willy / @Willy6932612311

09/03/2024 at 08:11PM

13
#359 - Kedhar Vinod / @kv-techie

10/10/2024 at 05:34AM

13
#360 - Hector Bjernersjö / @HectorBjernersjo

11/07/2024 at 08:47PM