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 358 remaining solutions by signing in and submitting your own entry
#359 윤지환 / @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

359 active golfers, 1623 entries

Leaderboard (lowest score wins):
6
#1 - Jean George / @JeanGeo20504212

10/06/2023 at 05:48PM

6
#2 - Smylers / @Smylers2

10/07/2023 at 09:43PM

6
#3 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

10/08/2023 at 04:22AM

6
#4 - John Braxler / @braxler

10/09/2023 at 02:44PM

6
#5 - erik.forex / @ErikForex

10/13/2023 at 10:03AM

6
#6 - scpchicken / @scpchick

10/18/2023 at 05:02PM

6
#7 - Alex Pepper / @AlexPepper1457

10/19/2023 at 08:32PM

6
#8 - jinx balotchnik / @balotchnik

10/20/2023 at 06:49AM

6
#9 - djheidihoe / @djheidihoe1

10/23/2023 at 12:04PM

6
#10 - Alexandre Huot / @AlexandreHuot1

10/30/2023 at 12:07AM

6
#11 - snkkid / @snkkid

10/30/2023 at 09:37AM

6
#12 - Yoseph Jeong / @yj65723

11/01/2023 at 03:28PM

6
#13 - Fabrizio Perria / @FPerria

11/04/2023 at 12:13PM

6
#14 - FilipRazek / @FilipRazek

11/08/2023 at 07:18PM

6
#15 - Jake Stewart / @justlemmebrowse

11/11/2023 at 03:37AM

6
#16 - Petro Тrouq / @zulolosi

11/12/2023 at 09:07PM

6
#17 - JetpackJackson / @JetpackJackson

11/14/2023 at 03:15PM

6
#18 - Blake Wingard / @Bats6789

11/15/2023 at 06:30PM

6
#19 - MartnRamtin / @MartnRamtin

11/16/2023 at 11:10PM

6
#20 - ldmnt / @ldmnt

11/17/2023 at 12:06AM

6
#21 - bpking1 / @bpking1

11/20/2023 at 04:32AM

6
#22 - 초롱이 / @treebird82

11/20/2023 at 04:38AM

6
#23 - Fati Haziri / @BigKingFati

11/20/2023 at 10:01AM

6
#24 - Monkey Boy / @monkey29089

11/21/2023 at 11:06AM

6
#25 - hello / @wwhbqrsb

11/21/2023 at 01:29PM

6
#26 - MonkieeBoi / @MonkieeBoi

11/21/2023 at 01:43PM

6
#27 - Lukasz Sroka / @louqash

11/22/2023 at 11:48PM

6
#28 - Jonatas Rafael Carneiro Ribeiro / @jonatasrafael

11/23/2023 at 01:50PM

6
#29 - David / @daminidev

11/23/2023 at 05:46PM

6
#30 - くりち / 栗原佑弥 / @kurichi97

11/24/2023 at 03:06PM