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

Quicksort

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

Start file
21 8 144 3 89 5 13 34 55 2


............................................................................
9G3W"fyEW"kyEW"qyE@f w@n8Gyfj}jj$p@rkp@r@0@o"qp$hyfg$p0"qy$fj}jj$p@rkp@r@0pG
f 0y$"_dd 6Gyw@o"kp"0p0"ky$"my$dd "lyy"lp0d$ @mby2eG2@o"0p yiw@o"0p $hyfg$p$
@n6Gtoy2l}++$p@r@0{+ }jj$p@rkp@r@0@o"qp$hyfg$p0"qy$fj}"jyEW"ayEW"byE+"syEW"x
@jV"ep "eyiw@nGG8Gyfj}jj$p@rk@0{ }-"xyiw*``{ndiw{w"eyiw{dG@mlviw"xP@mhdiw"eP
@c@d@d@aww@a@b @m@s@h @o"mp$xx0"my$dd @o"qp@r@0@o"qp$hyfg$p0"qy$dd@f gg @i@g
6Gw"ryEW"iyEW"oyEW"cyEW"nyE+"dyE+l"jyEW"ayEW"byE+"syEW"gyEW"hyE5Gy$@0 oyEWgg
End file
2 3 5 8 13 21 34 55 89 144


............................................................................
9G3W"fyEW"kyEW"qyE@f w@n8Gyfj}jj$p@rkp@r@0@o"qp$hyfg$p0"qy$fj}jj$p@rkp@r@0pG
f 0y$"_dd 6Gyw@o"kp"0p0"ky$"my$dd "lyy"lp0d$ @mby2eG2@o"0p yiw@o"0p $hyfg$p$
@n6Gtoy2l}++$p@r@0{+ }jj$p@rkp@r@0@o"qp$hyfg$p0"qy$fj}"jyEW"ayEW"byE+"syEW"x
@jV"ep "eyiw@nGG8Gyfj}jj$p@rk@0{ }-"xyiw*``{ndiw{w"eyiw{dG@mlviw"xP@mhdiw"eP
@c@d@d@aww@a@b @m@s@h @o"mp$xx0"my$dd @o"qp@r@0@o"qp$hyfg$p0"qy$dd@f gg @i@g
6Gw"ryEW"iyEW"oyEW"cyEW"nyE+"dyE+l"jyEW"ayEW"byE+"syEW"gyEW"hyE5Gy$@0 oyEWgg

View Diff

1c1
< 21 8 144 3 89 5 13 34 55 2
---
> 2 3 5 8 13 21 34 55 89 144

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 464 remaining solutions by signing in and submitting your own entry
#465 MountainHS / @MountainHS - Score: 434 - 03/12/25 @ 06:54
whhh9G3Wkkkkkkkkkkkkkkkkk0w"0dw:reg<CR>$dwuuwdw$dw<C-O><Tab><Tab><C-O><C-O><C-O><C-O><C-O><C-O><C-O><Tab><Tab><C-O>02wpu:reg<CR>puPa <Esc>$pu"1p:reg<CR><Esc><Esc>"0pwjkkkwwwwcwxx<Esc>$bbc<Esc>bbcwxx<Esc><C-O><C-O><C-O>bbbbbdpxxpu:reg<CR><Esc>uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuubbwrx<Esc>$uwRxxx<Esc>:reg<CR><Esc>udwixxx <Esc>w$dwax<Esc>0ww:reg<CR><Esc>dwpu:reg<CR>udwi2 <Esc>A<BS>144<Esc>bbbbi^<Esc>0wwwwi^<Esc>lhde13i13<Esc>wwui89<Esc>wwd<Esc>uudwuce13w<BS><Esc>wwcw<Esc>ce89<BS><BS> 89<Esc>hhhxi21<Esc>0dwi5 <Esc>wi^<Esc>wwwwbi^<Esc>lxuxi8<Esc>bbbxi3<Esc>hxwwxhhxir<Esc>uur5<Esc>0r2<Esc>wwwwwwwwhhhhhhcw55w<BS><Esc>wwcw89<Esc>hhhhhhhcw34<Esc>wucw34w<BS><Esc>wcw55<Esc>:w<CR>ZZ

0 comments


Created by: @normalmo_de

465 active golfers, 2095 entries

Leaderboard (lowest score wins):
30
#361 - saito ren / @rennn-n

05/31/2025 at 03:21PM

31
#362 - Seok Hwan Kim / @gworldkim

10/10/2023 at 11:37PM

31
#363 - ... / @ExplodedMango

10/16/2023 at 05:27AM

31
#364 - David Frascone / @CodeMonk

11/17/2023 at 03:21PM

31
#365 - whtsht / @whtsht

12/03/2023 at 12:28AM

31
#366 - moh ayaya / @AyayaMoh

02/25/2024 at 06:50PM

31
#367 - Murphy / @TemplateXu

08/19/2024 at 10:29AM

31
#368 - BrandonChenZT / @BrandonChenZT

10/26/2024 at 09:45AM

32
#369 - Sparrow18 / @Sparrow1810

10/06/2023 at 02:33PM

32
#370 - dehi / @dehidehidehi

01/16/2024 at 08:40PM

32
#371 - Peter Soos / @bpsoos

02/06/2024 at 12:28PM

32
#372 - . / @Lejzmr

03/17/2024 at 09:07AM

32
#373 - vimster12312 / @vimster12394846

03/26/2024 at 08:30PM

32
#374 - Gerrit Proessl / @g3rrit

04/08/2024 at 01:08PM

32
#375 - Anton Mosich / @antonmosich

05/02/2024 at 07:04PM

32
#376 - Mickey / @Mickey0321

10/17/2024 at 09:08AM

32
#377 - takahiro / @takahiro220

10/26/2024 at 06:41AM

32
#378 - legrs / @legrs4073

12/08/2024 at 01:02PM

32
#379 - Takemura Ryoken / @tkmrrkn

09/15/2025 at 09:12AM

33
#380 - abair / @abair

11/07/2023 at 08:29PM

33
#381 - binayligal / @binayligal

12/31/2023 at 01:56PM

33
#382 - Melker Isaksson / @MelkerI03

01/10/2024 at 06:16PM

33
#383 - 無所畏懼 / @littlepantstw

01/27/2024 at 04:01AM

33
#384 - lansh2197 / @lansh2197

02/11/2024 at 10:44AM

33
#385 - dennis / @nagolove

04/22/2024 at 01:15PM

33
#386 - Thermospore / @Thermospore

05/21/2024 at 11:56AM

33
#387 - Yammer2 / @Yammer2

03/01/2026 at 01:40PM

34
#388 - Arthur DELORT / @artDelort

10/24/2023 at 02:58PM

34
#389 - SangYeop, Ha / @ssayebee

11/16/2023 at 04:15AM

34
#390 - Gabriel Augendre / @Crocmagnon

02/15/2024 at 11:52PM