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 138 remaining solutions by signing in and submitting your own entry
#139 haruto009 / @haruto009 - Score: 107 - 11/28/23 @ 12:45
$x0Plllvlx<Esc>lulwwvhx0pwwwwvhx0wpwwwwlvhhxbbbbpwvhxbbpwwhhhi <Esc>wwwwlvjkhhxbbblp$hvhhxbbhhp$hvhhxbbhllp$x:w<CR>:q<CR>

0 comments


Created by: @normalmo_de

139 active golfers, 515 entries

Leaderboard (lowest score wins):
25
#91 - Jesús Jiménez / @j3wi

11/30/2023 at 11:25AM

26
#92 - oboki / @happy_oboki

10/18/2023 at 06:01AM

26
#93 - YoungDong Kim / @zeroest

11/19/2023 at 07:23AM

26
#94 - Alfred Tso / @alfredtso

11/22/2023 at 07:03AM

26
#95 - e1mnos / @e1mnos

11/30/2023 at 03:25PM

27
#96 - Hans / @hmuendel

10/05/2023 at 09:21PM

27
#97 - None / @sh1chuang

10/16/2023 at 11:56AM

27
#98 - Cammy / @desert_silo

10/23/2023 at 08:50PM

28
#99 - Julien Noblet / @julien-noblet

11/19/2023 at 08:40PM

29
#100 - NDavis / @D1727374757

10/13/2023 at 08:59PM

29
#101 - Stefan Krist / @nerdyness_sk

10/24/2023 at 08:36PM

29
#102 - KP / @KPatr1ck

11/06/2023 at 08:13AM

29
#103 - Ludovic Schwartz / @ludovicschwartz

11/16/2023 at 02:29PM

29
#104 - Yeh Yen-Ke / @yyken

11/20/2023 at 10:29AM

30
#105 - Jeremy Cantrell / @jmcantrell

10/08/2023 at 05:44AM

30
#106 - Matej Mužila / @MatejMuzila

10/12/2023 at 07:42AM

30
#107 - Camille Masset / @MassetCamille

10/29/2023 at 09:57PM

30
#108 - aspiring robber baron / @0xApophenia

10/31/2023 at 03:52PM

30
#109 - John Nguyen / @nguyeness

11/28/2023 at 10:44PM

31
#110 - Seok Hwan Kim / @gworldkim

10/10/2023 at 11:37PM

31
#111 - ... / @ExplodedMango

10/16/2023 at 05:27AM

31
#112 - David Frascone / @CodeMonk

11/17/2023 at 03:21PM

31
#113 - Donny / @donny-nyc

11/30/2023 at 06:04PM

32
#114 - Sparrow18 / @Sparrow1810

10/06/2023 at 02:33PM

32
#115 - Jose Ignacio / @JoseIgnacioGC

11/30/2023 at 04:30AM

33
#116 - abair / @abair

11/07/2023 at 08:29PM

34
#117 - Arthur DELORT / @artDelort

10/24/2023 at 02:58PM

34
#118 - SangYeop, Ha / @ssayebee

11/16/2023 at 04:15AM

37
#119 - Divyansh Tripathi / @theoden42

11/09/2023 at 11:35AM

37
#120 - 赵火龙 / @P9srNn4b741jocf

11/30/2023 at 10:01AM