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):
17
#1 - Danilo J. S. Bellini πŸ₯ŠπŸ‡§πŸ‡· / @danilobellini

11/23/2024 at 01:36AM

17
#2 - xscript71 / @xscript71

11/24/2024 at 10:40AM

17
#3 - Rodi-Janssen / @Rodi-Janssen

11/26/2024 at 02:01PM

17
#4 - countime / @countime

11/26/2024 at 02:43PM

17
#5 - John Braxler / @braxler

11/26/2024 at 10:41PM

17
#6 - GGOBP / @GG-O-BP

12/02/2024 at 07:01AM

17
#7 - abgalphbetz / @abgalphabetz

12/05/2024 at 08:08PM

17
#8 - Staring / @StaringWhere

12/09/2024 at 04:16AM

17
#9 - Peppa Pig / @PeppaPigSg

12/12/2024 at 02:59AM

17
#10 - dejam2007 / @dejam2007

12/28/2024 at 04:38PM

17
#11 - Pstock7 / @Pstock7

01/26/2025 at 12:06AM

17
#12 - shooker2012 / @shooker2012

03/26/2025 at 03:08AM

17
#13 - jimmymills / @jimmymills

05/10/2025 at 11:12PM

17
#14 - Leon Kacowicz / @leonkacowicz

05/27/2025 at 07:20PM

17
#15 - Berel94 / @Berel94

10/07/2025 at 04:00PM

17
#16 - Dmitrii Efimenko / @0pt1m1z3r

11/05/2025 at 12:07PM

18
#17 - maharba6 / @maharba6

01/14/2025 at 09:59PM

18
#18 - Hessesian / @Hessesian

05/29/2025 at 10:07PM

18
#19 - petr-kx / @petr-kx

07/18/2025 at 02:46PM

18
#20 - Pierre Senellart / @PierreSenellart

08/05/2025 at 04:12AM

18
#21 - SmileImagine / @SmileImagine

10/25/2025 at 09:23PM

18
#22 - γƒ¨γƒΌγƒžγƒ³γ‚¦γ‚©γƒΌγƒ€ / @YeomenWarder

12/06/2025 at 09:37AM

18
#23 - sasher8 / @sasher8

12/21/2025 at 10:35AM

26
#24 - iantalks / @iantalks

12/03/2024 at 12:55PM

26
#25 - Yordan Boikov / @yboikov

12/07/2024 at 02:03PM

26
#26 - Herschel / @herschel-ma

01/03/2025 at 02:55AM

26
#27 - Chino / @MarcoMeinardi

01/12/2025 at 10:14AM

26
#28 - hamakichitaro / @hamakichitaro

02/23/2025 at 02:08PM

30
#29 - constap / @constap

03/25/2025 at 12:55AM

30
#30 - Tyler Patton / @jamestylerpatton

11/21/2025 at 08:07PM