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):
6
#31 - Eryk Walter / @ErykWalter

11/24/2023 at 11:41PM

6
#32 - 悟史 / @A1OBJTxN5fTg5EJ

11/27/2023 at 01:06PM

6
#33 - lethalNeutrino / @lethalNeutrino

11/28/2023 at 12:16PM

6
#34 - Sando Itchi / @sando_itchi

11/29/2023 at 03:37AM

6
#35 - Frédéric Heulin / @talineo

11/29/2023 at 09:46AM

6
#36 - ssiumha / @ssiumha

11/30/2023 at 05:27AM

6
#37 - danzollers / @danzollers

11/30/2023 at 03:03PM

6
#38 - LandR / @ListenAndR

12/01/2023 at 07:41AM

6
#39 - Kha Nguyen / @__ngtrongkha

12/02/2023 at 02:31PM

6
#40 - Joey / @jrobertson20

12/03/2023 at 06:24AM

6
#41 - Joachim Wedin / @joachimwedin

12/04/2023 at 02:25PM

6
#42 - LynJam / @LynJam

12/06/2023 at 11:05AM

6
#43 - Eric Dobson / @ericdobson

12/06/2023 at 07:12PM

6
#44 - Kerdan226-training / @Kerdan226-training

12/08/2023 at 11:22PM

6
#45 - TiOs-dev / @TiOs-dev

12/11/2023 at 10:51AM

6
#46 - rike09 / @rike09

12/11/2023 at 12:01PM

6
#47 - Jose Ignacio / @JoseIgnacioGC

12/12/2023 at 07:27PM

6
#48 - levioneyh / @levioneyh

12/12/2023 at 07:28PM

6
#49 - frla46 / @frla46

12/17/2023 at 05:13PM

6
#50 - masatosis / @masatosis

12/18/2023 at 04:13AM

6
#51 - a-bulte / @a-bulte

12/21/2023 at 01:30PM

6
#52 - dvquentincarrel / @dvquentincarrel

12/28/2023 at 01:49PM

6
#53 - Jasper v. B. / @jazzpi

12/29/2023 at 02:44PM

6
#54 - Vishal / @gyanantaran

12/31/2023 at 04:03PM

6
#55 - weixiaobaoL / @weixiaobaoL

01/02/2024 at 07:40AM

6
#56 - jeffreymrussell / @jeffreymrussell

01/03/2024 at 03:18PM

6
#57 - Matt Zhang / @MattUnderscoreZhang

01/05/2024 at 02:13PM

6
#58 - Arey125 / @Arey125

01/06/2024 at 11:11AM

6
#59 - Yordan Boikov / @yboikov

01/06/2024 at 09:36PM

6
#60 - JustAnAverageGuy / @JustAnAverageGuy

01/07/2024 at 12:36AM