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, 3858 entries

Leaderboard (lowest score wins):
13
#331 - Ben Simmons / @Simmons_Ben

01/20/2021 at 03:27PM

13
#332 - Andreas Siegrist / @andreaszwei

01/21/2021 at 06:29PM

13
#333 - OtterPy / @OtterPy

01/27/2021 at 09:53AM

13
#334 - der tanzbaer / @der_tanzbaer

03/13/2021 at 03:18PM

13
#335 - Michel Viktor / @tomkpz

08/08/2021 at 10:27PM

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

03/29/2022 at 02:05AM

13
#337 - Youssef Magdy / @youssef_magdy29

04/28/2022 at 12:16AM

13
#338 - Alex / @AlexanderHeatl2

07/06/2022 at 11:42PM

13
#339 - Andrew Liu / @AndrewL45936893

09/09/2022 at 03:45AM

13
#340 - z00master / @z00master

09/09/2022 at 04:48PM

13
#341 - Alexander Curtis / @AlexOnCode

03/24/2023 at 03:22PM

13
#342 - James Reading / @bowly_jim

04/11/2023 at 01:40PM

13
#343 - Aayush Dutt / @AayushDutt

07/10/2023 at 04:50PM

13
#344 - Lex Romanov / @feax_ru

07/28/2023 at 10:46AM

13
#345 - Luoyb / @Luoyb

11/03/2023 at 06:52AM

13
#346 - Steve Shi / @steveshi7

02/10/2024 at 07:38AM

13
#347 - Jye / @jyesawtellrickson

04/17/2024 at 08:23AM

13
#348 - luke37842 / @luke37842

05/18/2024 at 03:15PM

13
#349 - SanderHestvik / @SanderHestvik

06/15/2024 at 05:37PM

13
#350 - Stanley F / @sfo

07/30/2024 at 07:39AM

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

08/27/2024 at 08:44AM

13
#352 - ingonerd / @ingonerd

09/02/2024 at 07:36AM

13
#353 - Willy / @Willy6932612311

09/03/2024 at 08:11PM

13
#354 - Kedhar Vinod / @kv-techie

10/10/2024 at 05:34AM

13
#355 - Hector Bjernersjö / @HectorBjernersjo

11/07/2024 at 08:47PM

13
#356 - Leon Katsnelson / @leonkatsnelson

11/11/2024 at 04:25PM

13
#357 - OisinWard / @OisinWard

11/20/2024 at 01:29PM

13
#358 - JohanNorberg / @JohanNorberg

01/24/2025 at 09:32PM

14
#359 - Robin De Mol / @RobinDeMol

09/18/2018 at 01:42PM

14
#360 - Steve / @fourbitbots

09/19/2018 at 01:54AM