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 432 remaining solutions by signing in and submitting your own entry
#433 윤지환 / @doilche - Score: 329 - 03/22/24 @ 11:31
V:s.<BS>/\s/\n/g<CR>u<CR>kjkV:s/\s/\\n<CR>uV:d<BS>s/\s/\\\\n<CR>uV:s/\s/\m<BS>n<BS>\n/g<CR>u<CR><Up>:<BS><BS>V:s/\s/\r<CR>uV:s/\s\<BS>/\r/g<CR>kkkkkkkkkkkkkkkkkkvjjjjjjjjjkjl:sort<CR>uvjjjjjjjjjl:sort n<CR>vjjjjjjjjjjjjjkkkklll:sort<BS><BS><BS><BS>s/rn<BS><BS>\r.<BS>/\s/g<CR>u<C-R>vjjjjjjjjjlllll:s/\r/\s/g<CR>vmkjjjjjjjjjj:s/\r/\s/g<CR>vjjjjjjjjjjjk:s/\n/\s/g<CR>ujjjjjjjjji<BS> <Left><Left><Left><BS> <Left><Left><Left><BS> <Left><Left><Left><BS> <Left><Left><Left><BS> <Left><Left><Left><BS> <Left><Left><BS> <Left><Left><BS> <Left><Left><BS> <Esc>:<BS>ZZ

0 comments


Created by: @normalmo_de

433 active golfers, 1964 entries

Leaderboard (lowest score wins):
27
#301 - ericlovesmath / @ericlovesmath

01/15/2024 at 01:52AM

27
#302 - Alexander Curtis / @AlexOnCode

01/26/2024 at 11:38AM

27
#303 - HAYASHI-Masayuki / @HAYASHI-Masayuki

07/26/2024 at 12:21PM

27
#304 - Roland Hollós / @hollorol

07/29/2024 at 12:00PM

27
#305 - 🥚 / @schmarles_

09/19/2024 at 09:13PM

28
#306 - Julien Noblet / @julien-noblet

11/19/2023 at 08:40PM

28
#307 - Enrique Gómez Cruz / @egmzcrz

02/04/2024 at 05:50AM

28
#308 - jferina / @jferina

03/28/2024 at 06:36AM

28
#309 - Jin Hao / @hongjinhao

07/30/2024 at 09:35AM

29
#310 - NDavis / @D1727374757

10/13/2023 at 08:59PM

29
#311 - Stefan Krist / @nerdyness_sk

10/24/2023 at 08:36PM

29
#312 - KP / @KPatr1ck

11/06/2023 at 08:13AM

29
#313 - Ludovic Schwartz / @ludovicschwartz

11/16/2023 at 02:29PM

29
#314 - Yeh Yen-Ke / @yyken

11/20/2023 at 10:29AM

29
#315 - satake0916 / @satake0916

12/28/2023 at 01:18AM

29
#316 - Grec Marc / @MGreek

01/12/2024 at 09:31PM

29
#317 - shahanavaz m / @shahanavazm

03/29/2024 at 01:29AM

29
#318 - CattleProdigy / @CattleProdigy

05/16/2024 at 03:12PM

29
#319 - reatter / @reatter

09/17/2024 at 01:08PM

30
#320 - Jeremy Cantrell / @jmcantrell

10/08/2023 at 05:44AM

30
#321 - Matej Mužila / @MatejMuzila

10/12/2023 at 07:42AM

30
#322 - Camille Masset / @MassetCamille

10/29/2023 at 09:57PM

30
#323 - aspiring robber baron / @0xApophenia

10/31/2023 at 03:52PM

30
#324 - John Nguyen / @nguyeness

11/28/2023 at 10:44PM

30
#325 - Donny / @donny-nyc

12/11/2023 at 07:49PM

30
#326 - 6-viron / @6_viron

01/05/2024 at 09:24PM

30
#327 - vimgolfer / @vimgolf321

02/26/2024 at 12:37PM

30
#328 - Samuel Lewi H / @slh_samuel

03/13/2024 at 05:24PM

30
#329 - Jelani Felix / @Jelanife

03/18/2024 at 02:30AM

30
#330 - Darky2020 / @Darky2020

03/22/2024 at 09:45PM