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

442 active golfers, 2005 entries

Leaderboard (lowest score wins):
24
#241 - Espen H. Kristensen / @espenhk

04/29/2024 at 07:35PM

24
#242 - Jannik Birk / @dernatsch

05/01/2024 at 09:03AM

24
#243 - kbrashem / @kbrashem

05/09/2024 at 07:51PM

24
#244 - luke37842 / @luke37842

05/14/2024 at 11:29AM

24
#245 - Jiří Alexandrovič / @Fanteria

06/01/2024 at 09:28AM

24
#246 - cotarmanach / @cotarmanach

06/02/2024 at 12:32PM

24
#247 - TobSick / @TobSick

06/08/2024 at 08:19AM

24
#248 - imperatormatthias / @imperatormatthias

06/16/2024 at 10:02PM

24
#249 - 坪井和成 / @dadasutasudadas

06/20/2024 at 11:29AM

24
#250 - Giacomo Sansone / @pcineverdies

06/25/2024 at 04:03PM

24
#251 - Justin Choi / @Mcthecuber

07/01/2024 at 05:05PM

24
#252 - Sloogs / @Sloogs

07/04/2024 at 07:04AM

24
#253 - Coenraad / @coenraadv

07/06/2024 at 09:46AM

24
#254 - yexia0 / @yexia0

07/13/2024 at 09:10AM

24
#255 - evixenon / @evixenon

07/20/2024 at 10:19PM

24
#256 - Blake Raymond / @bit-ray

07/22/2024 at 05:32AM

24
#257 - NotWearingPants / @NotWearingPants

08/05/2024 at 11:59PM

24
#258 - Jonathan Schaaij / @jonathanschaaij

08/22/2024 at 09:46AM

24
#259 - Karim / @KarimIbrahim

08/25/2024 at 05:57AM

24
#260 - Navid Salehi / @havijs

08/27/2024 at 07:55AM

24
#261 - ばやし / @shin5884_kt

09/08/2024 at 12:34PM

24
#262 - IroncladDev / @IroncladDev

09/17/2024 at 09:33PM

24
#263 - Janusz Spatz / @janusz-anue

09/20/2024 at 10:42PM

24
#264 - Pablo Acuna / @pacuna

10/22/2024 at 07:35PM

24
#265 - Wim Stockman / @wimstockman

11/10/2024 at 05:40PM

24
#266 - Rodi-Janssen / @Rodi-Janssen

11/11/2024 at 08:37PM

24
#267 - Chloe Brett / @chloebrett

11/12/2024 at 07:38AM

24
#268 - countime / @countime

11/27/2024 at 04:35AM

24
#269 - Rishi Tez Reddy / @RishiTez

11/28/2024 at 09:04PM

24
#270 - Buliway / @Buliway

11/30/2024 at 11:37PM