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):
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

24
#40 - Cameron / @0b01000011

10/06/2023 at 12:03AM

24
#41 - Matthew Finlayson / @mattf1n

10/06/2023 at 01:45AM

24
#42 - かぼす / @umesawanokabosu

10/07/2023 at 04:57AM

24
#43 - M / @M48026710

10/08/2023 at 08:44PM

24
#44 - 으앙 / @meri2727

10/11/2023 at 11:58AM

24
#45 - James / @Dronak

10/11/2023 at 04:01PM

24
#46 - SmoggyFog / @SmoggyFog

10/11/2023 at 11:04PM

24
#47 - Tom11w / @Tom11Wh

10/12/2023 at 11:05AM

24
#48 - Andrew Morris / @AndrewJZ

10/13/2023 at 05:45AM

24
#49 - tien / @tien40766111

10/14/2023 at 04:25PM

24
#50 - Michal Říha / @lejzr

10/15/2023 at 10:52PM

24
#51 - Felipe J. O. Ribeiro / @FelipeJORibeir1

10/15/2023 at 11:56PM

24
#52 - Laurens De la Marche / @LaurensDLM

10/16/2023 at 10:00AM

24
#53 - Andrew Pritchard / @pilotInPyjamas

10/16/2023 at 11:47AM

24
#54 - 'Dr' Joe Reddington / @JoeReddington

10/17/2023 at 11:20AM

24
#55 - Luoyb / @Luoyb

10/18/2023 at 05:57AM

24
#56 - Josh Harrison / @ultrapasty

10/18/2023 at 09:49AM

24
#57 - 7733865@qq.com / @tjxwg

10/19/2023 at 10:24AM

24
#58 - Kaepa69 / @kaepa3

10/20/2023 at 05:00PM

24
#59 - Yassine Ibr / @yassineibr2001

10/22/2023 at 03:48PM

24
#60 - iiujkk / @iiujkk2

10/25/2023 at 07:23PM