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

153 active golfers, 570 entries

Leaderboard (lowest score wins):
24
#61 - Luoyb / @Luoyb

10/18/2023 at 05:57AM

24
#62 - Josh Harrison / @ultrapasty

10/18/2023 at 09:49AM

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

10/19/2023 at 10:24AM

24
#64 - Kaepa69 / @kaepa3

10/20/2023 at 05:00PM

24
#65 - Yassine Ibr / @yassineibr2001

10/22/2023 at 03:48PM

24
#66 - iiujkk / @iiujkk2

10/25/2023 at 07:23PM

24
#67 - Vimgolf User / @VimgolfU

10/27/2023 at 09:03AM

24
#68 - 陈俊池 / @calm_furious

10/30/2023 at 10:13PM

24
#69 - Sergej Karavajnij / @basyanya_sk

10/31/2023 at 11:43AM

24
#70 - samuel erlands / @ErlandsSam52210

10/31/2023 at 03:04PM

24
#71 - ShookerAndBeta / @Shooker2012

11/02/2023 at 02:26AM

24
#72 - wemgulf / @wemgulfer

11/03/2023 at 10:37AM

24
#73 - hpmv / @hpmv

11/04/2023 at 09:04PM

24
#74 - Timothée Gauthier / @Hettomei

11/04/2023 at 09:26PM

24
#75 - Aaron Lucas / @aaron-lucas

11/05/2023 at 07:52AM

24
#76 - Jakob Weickmann / @jweickm

11/09/2023 at 02:46PM

24
#77 - Armin Patel / @arminpatel

11/10/2023 at 03:00PM

24
#78 - prathamnagpure / @prathamnagpure

11/11/2023 at 04:03PM

24
#79 - anakojm / @anakojm

11/12/2023 at 01:03PM

24
#80 - Irakli Chigvaria / @tchigvaria

11/12/2023 at 01:41PM

24
#81 - chan chan / @CChan24582

11/13/2023 at 02:12AM

24
#82 - Opus28 / @Opus28

11/15/2023 at 08:50PM

24
#83 - Arkady Buryakov / @ArkadyBuryakov

11/16/2023 at 05:31PM

24
#84 - Jason Amador / @jasonamador

11/17/2023 at 05:58AM

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

11/17/2023 at 12:56PM

24
#86 - Pablo Cárdenas / @pablo_cardenasb

11/17/2023 at 08:11PM

24
#87 - Virginia Senioria / @91khr

11/20/2023 at 02:08PM

24
#88 - Paolo Capriotti / @pcapriotti

11/20/2023 at 10:33PM

24
#89 - jst1001 / @jst1001

11/20/2023 at 11:17PM

24
#90 - herbage / @herbage2

11/21/2023 at 10:24PM