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

Leaderboard (lowest score wins):
17
#571 - RockerZZY / @rocker_zzy

05/27/2020 at 04:57AM

17
#572 - 鏡崎ましろ / @KagamisakiMsr

06/16/2020 at 08:10AM

17
#573 - Di Liu / @Skyerliu

06/20/2020 at 06:51PM

17
#574 - abhijeet patil / @abhijeetptl5

09/03/2020 at 12:57PM

17
#575 - The Valencian Dev / @thevalenciandev

10/12/2020 at 12:30PM

17
#576 - roy twt / @roytwt1

10/18/2020 at 12:43PM

17
#577 - Demian Martinez / @demianuco

11/02/2020 at 12:47AM

17
#578 - vimspam / @vimspam

11/09/2020 at 09:29PM

17
#579 - __VimGolfer__ / @VimGolfer19

11/27/2020 at 07:13AM

17
#580 - John Doe / @JohnDoe75830353

12/22/2020 at 02:11PM

17
#581 - Matt Sartwell / @mesartwell

02/17/2023 at 03:40AM

17
#582 - Gatu llambión / @gatu_llambion

08/22/2023 at 10:04PM

17
#583 - EVVNYR / @EVVNYR

09/20/2023 at 08:32PM

17
#584 - Jan Troest / @jan_troest

10/30/2023 at 10:13AM

17
#585 - Matthew Craig / @Matthew-Craig01

03/17/2024 at 02:17PM

17
#586 - Ian Morrison / @narq

04/06/2024 at 06:50PM

17
#587 - wutwere / @wutwere

06/30/2024 at 09:59PM

17
#588 - Anton de Regt / @antonderegt

10/25/2024 at 01:29PM

18
#589 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#590 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#591 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#592 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#593 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

18
#594 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

18
#595 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:24PM

18
#596 - pebra / @pebrabb

05/10/2019 at 11:42AM

18
#597 - Abe Cede / @A_be_Cede

06/06/2019 at 12:25PM

18
#598 - dtjong / @dtjong2

06/07/2019 at 10:01PM

18
#599 - seul / @seul15987381

06/20/2019 at 11:09AM

18
#600 - brypto / @hiimbenjy

10/01/2019 at 02:01AM