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
#211 - prathamnagpure / @prathamnagpure

11/11/2023 at 04:03PM

24
#212 - Anako Jeannin-Mallet / @anakojm

11/12/2023 at 01:03PM

24
#213 - Irakli Chigvaria / @tchigvaria

11/12/2023 at 01:41PM

24
#214 - chan chan / @CChan24582

11/13/2023 at 02:12AM

24
#215 - Leon Katsnelson / @leonkatsnelson

11/15/2023 at 08:50PM

24
#216 - Arkady Buryakov / @ArkadyBuryakov

11/16/2023 at 05:31PM

24
#217 - Jason Amador / @jasonamador

11/17/2023 at 05:58AM

24
#218 - Андрей Куренков (Arey) / @Arey_65536

11/17/2023 at 12:56PM

24
#219 - Virginia Senioria / @91khr

11/20/2023 at 02:08PM

24
#220 - Paolo Capriotti / @pcapriotti

11/20/2023 at 10:33PM

24
#221 - jst1001 / @jst1001

11/20/2023 at 11:17PM

24
#222 - herbage / @herbage2

11/21/2023 at 10:24PM

24
#223 - Remus Dalrymple / @bornintheflames

11/24/2023 at 07:47AM

24
#224 - Kaaden RumanCam / @shellbertt

11/27/2023 at 08:16AM

24
#225 - Preisthe / @Preisthe

11/30/2023 at 04:51PM

24
#226 - Michele Moio / @mmoio

12/15/2023 at 04:06PM

24
#227 - Kevin Wang / @VitamintK

12/25/2023 at 08:07PM

24
#228 - Ashley Towner / @ashleytowner

01/02/2024 at 10:04AM

24
#229 - egitto / @egitto

01/05/2024 at 09:06PM

24
#230 - Tom Anderson / @andogq

01/13/2024 at 01:19AM

24
#231 - Sami Tabet / @sfluor

01/18/2024 at 01:50PM

24
#232 - Alex Curtis / @alexandercurtis

01/26/2024 at 11:46AM

24
#233 - Daniel Apt / @DanielApt

02/09/2024 at 10:08PM

24
#234 - orkfpot / @orkfpot

02/13/2024 at 03:35PM

24
#235 - iNaKoll / @iNaKoll

02/27/2024 at 06:54PM

24
#236 - Marco Meinardi / @Kee__no

03/15/2024 at 12:22PM

24
#237 - TrairaC / @TrairaC

03/19/2024 at 09:57PM

24
#238 - Charlie / @charliezchen

03/31/2024 at 06:14AM

24
#239 - armaninux / @armaninux

04/04/2024 at 01:08PM

24
#240 - xiaoao1024 / @xiaoao1024

04/28/2024 at 05:56AM