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 132 remaining solutions by signing in and submitting your own entry
#133 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

133 active golfers, 544 entries

Leaderboard (lowest score wins):
46
#61 - thierryharte / @thierryharte

04/18/2025 at 11:19AM

46
#62 - Jonathan Cooper / @ReallySnazzy

07/04/2025 at 05:01AM

46
#63 - maksim-pinguin / @maksim-pinguin

02/26/2026 at 02:29PM

47
#64 - Rishi Tez Reddy / @RishiTez

11/28/2024 at 12:20PM

47
#65 - Dhruv Prasad Deshpande / @Alcyeron

01/11/2025 at 01:17PM

48
#66 - Rehpotsirhc / @Rehpotsirhc-z

12/11/2024 at 10:39PM

49
#67 - Silver / @paradisehex

11/26/2024 at 11:18AM

49
#68 - mirroris / @mirroris

12/13/2024 at 03:39PM

49
#69 - Filipe Pereira / @f-pereira

12/19/2024 at 12:05PM

49
#70 - ashfinal / @ashfinal

01/16/2025 at 06:53PM

49
#71 - Benjamin / @b2vqbw

07/16/2025 at 04:52PM

49
#72 - canabadyweb / @canabadyweb

08/05/2025 at 07:26AM

49
#73 - Jens Wilbert / @dragontec12

12/21/2025 at 09:58PM

50
#74 - Atharva Mahajan / @atharvam4

07/22/2026 at 07:41AM

51
#75 - rhysmaiden / @rhysmaiden

01/29/2025 at 11:14AM

51
#76 - greg-asc / @greg-asc

06/05/2025 at 10:18PM

51
#77 - Rafe Murray / @rafe-murray

01/15/2026 at 11:47PM

51
#78 - gpiwarr / @gpigwarrior

03/03/2026 at 08:56PM

54
#79 - act-1F98A / @act-1F98A

01/14/2025 at 05:02AM

54
#80 - Charles Beauville / @charlesbvll

04/19/2025 at 01:10PM

54
#81 - cjmHK / @cjmHK

03/26/2026 at 10:14AM

55
#82 - Heitor Dantas / @heitordnts

12/16/2024 at 07:37PM

56
#83 - Caleb McIrvin / @cmmcirvin

04/29/2025 at 02:24AM

57
#84 - LunaSakura / @Luna5akura

11/28/2024 at 08:07AM

57
#85 - Shoob / @martinshoob

12/02/2024 at 11:07AM

58
#86 - HideInTheShadow / @HideInTheShadow

08/04/2026 at 08:00AM

59
#87 - se / @sairutra

11/21/2025 at 12:34PM

59
#88 - nicolas / @cnbaird

06/10/2026 at 05:40PM

60
#89 - EvenAnton / @EvenAnton

09/15/2025 at 09:25AM

63
#90 - wesdgray / @wesdgray

07/05/2025 at 06:57AM