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 9v0067401f2500000000061b

Change to ascending order

Change each line of numbers consistently from descending to ascending order.

Start file
10,9,8,7,6,5,4,3,2,1
Ten,Nine,Eight,Seven,Six,Five,Four,Three,Two,One
Tenth,Ninth,Eighth,Seventh,Sixth,Fifth,Fourth,Third,Second,First
X,IX,VIII,VII,VI,V,IV,III,II,I
End file
1,2,3,4,5,6,7,8,9,10
One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten
First,Second,Third,Fourth,Fifth,Sixth,Seventh,Eighth,Ninth,Tenth
I,II,III,IV,V,VI,VII,VIII,IX,X

View Diff

1,4c1,4
< 10,9,8,7,6,5,4,3,2,1
< Ten,Nine,Eight,Seven,Six,Five,Four,Three,Two,One
< Tenth,Ninth,Eighth,Seventh,Sixth,Fifth,Fourth,Third,Second,First
< X,IX,VIII,VII,VI,V,IV,III,II,I
---
> 1,2,3,4,5,6,7,8,9,10
> One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten
> First,Second,Third,Fourth,Fifth,Sixth,Seventh,Eighth,Ninth,Tenth
> I,II,III,IV,V,VI,VII,VIII,IX,X

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 116 remaining solutions by signing in and submitting your own entry
#117 SaneryiMatt / @SaneryiMatt - Score: 649 - 03/31/25 @ 11:41
<Right><Left><50-53>:%s/\(10,9,8,7,6,5,4,3,2,1\)/1,2,3,4,5,6,7,8,9,10/<Esc>[201~<CR>u:<50-53>:%s/\(10,9,8,7,6,5,4,3,2,1\)/1,2,3,4,5,6,7,8,9,10/<Esc>[201~<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><CR><Down>:<50-53>%s/Ten,Nine,Eight,Seven,Six,Five,Four,Three,Two,One/One,Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten/<Esc>[201~<CR><Down><0xef><0xbc><0x9a><0xef><0xbc><0x9a><Down><Up><0xef><0xbc><0x9a><Right><Left>l<Esc><Esc><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><Down><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>:<50-53>%s/Tenth,Ninth,Eighth,Seventh,Sixth,Fifth,Fourth,Third,Second,First/First,Second,Third,Fourth,Fifth,Sixth,Seventh,Eighth,Ninth,Tenth/<Esc>[201~<CR><Down><0xef><0xbc><0x9a><0xef><0xbc><0x9a><Esc><0xef><0xbc><0x9a><Esc><Esc><Esc><Esc><Esc><CR><0xef><0xbc><0x9a>i<Esc><Esc>:<50-53>%s/X,IX,VIII,VII,VI,V,IV,III,II,I/I,II,III,IV,V,VI,VII,VIII,IX,X/<Esc>[201~<CR><0xef><0xbc><0x9a><Esc><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><0xef><0xbc><0x9a><CR><CR><0xef><0xbc><0x9a>lkjhlkjj<Esc>:wq<CR>

0 comments


Created by: @maharba6

117 active golfers, 483 entries

Leaderboard (lowest score wins):
31
#31 - Magnus Wahlstrand / @magnuswahlstrand

01/03/2025 at 09:17PM

32
#32 - Pablo Acuna / @pacuna

11/22/2024 at 08:42PM

33
#33 - Sebastian Caicedo / @jsebdev

04/19/2025 at 07:29PM

34
#34 - Frank Benoit / @frankb_stgt

05/23/2025 at 07:45PM

35
#35 - migoohao / @migoohao

06/22/2025 at 02:47AM

36
#36 - Josh / @joshfelm

05/02/2025 at 10:19AM

37
#37 - camillahundahl / @camillahundahl

01/14/2025 at 09:03PM

38
#38 - Damien Baldy / @dbaldy

05/19/2025 at 11:41AM

38
#39 - Fabian / @fshstk

06/24/2025 at 12:55AM

39
#40 - 0xf00ff00f / @0xf00ff00f

02/09/2025 at 12:23PM

39
#41 - Ming / @x51ming

04/25/2025 at 04:54AM

40
#42 - Robert Gu / @ArchWand

05/23/2025 at 07:25PM

41
#43 - msbatarce / @msbatarce

04/01/2025 at 12:51PM

41
#44 - hiro1234omochi / @hiro1234omochi

05/11/2025 at 04:53PM

41
#45 - Leonardo Dipilato / @LeonardoDipilato

06/03/2025 at 04:01PM

41
#46 - Logan Brase / @braselog

08/08/2025 at 10:54AM

42
#47 - MartnRamtin / @MartnRamtin

12/02/2024 at 11:08PM

42
#48 - Biswajit / @biswajitpatra

12/13/2024 at 11:28AM

42
#49 - jeffreymrussell / @jeffreymrussell

12/19/2024 at 03:14PM

42
#50 - Isaac Wolverton / @IsaacWolverton

04/24/2025 at 02:50PM

43
#51 - Konrad Guzek / @kguzek

12/25/2025 at 02:07AM

44
#52 - mysper / @mysper

11/29/2024 at 08:17AM

44
#53 - k1mosabe / @k1mosabe

12/02/2024 at 06:36PM

44
#54 - Brian Le / @bkylele

12/04/2024 at 07:04AM

44
#55 - Mike Malveaux / @mmlvx

06/02/2025 at 08:24PM

46
#56 - thierryharte / @thierryharte

04/18/2025 at 11:19AM

46
#57 - Jonathan Cooper / @ReallySnazzy

07/04/2025 at 05:01AM

47
#58 - Rishi Tez Reddy / @RishiTez

11/28/2024 at 12:20PM

47
#59 - Dhruv Prasad Deshpande / @Alcyeron

01/11/2025 at 01:17PM

48
#60 - Rehpotsirhc / @Rehpotsirhc-z

12/11/2024 at 10:39PM