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
#61 - BlockLune / @BlockLune

01/07/2024 at 03:28PM

6
#62 - Stephen / @szhanggg

01/08/2024 at 12:39AM

6
#63 - paranoid-bunny / @paranoid-bunny

01/08/2024 at 04:49PM

6
#64 - Josh Callender / @Saponifi3d

01/10/2024 at 09:47PM

6
#65 - Zachary Peterson / @zpeterson16

01/14/2024 at 10:19PM

6
#66 - Caetano Sauer / @caetanosauer

01/15/2024 at 09:39AM

6
#67 - cykirk / @cykirk

01/15/2024 at 03:00PM

6
#68 - Caesar 🏴󠁧󠁢󠁷󠁬󠁳󠁿 / @NotRexButCaesar

01/16/2024 at 09:40PM

6
#69 - Trewornan / @Trewornan

01/24/2024 at 01:50PM

6
#70 - John Oatey / @JojoMakesGames

01/26/2024 at 06:54PM

6
#71 - ydbB / @ydbB

01/28/2024 at 02:54PM

6
#72 - QKSDM / @qksdm

01/29/2024 at 02:44PM

6
#73 - Sondre Lunde / @sondresl

01/30/2024 at 03:10PM

6
#74 - Gergő Nagy / @greg-nagy

01/30/2024 at 09:49PM

6
#75 - ShookerAndBeta / @Shooker2012

01/31/2024 at 02:27AM

6
#76 - mevmev / @mevmev8

01/31/2024 at 07:52AM

6
#77 - diwa / @LuoDi-Nate

02/02/2024 at 07:56AM

6
#78 - anythingapplied / @anythingapplied

02/02/2024 at 12:31PM

6
#79 - 221300034gzx / @221300034gzx

02/03/2024 at 03:20PM

6
#80 - nightgather / @nightgather

02/06/2024 at 11:36AM

6
#81 - gFffdhg6UX3ceYvTsLms / @gFffdhg6UX3ceYvTsLms

02/06/2024 at 04:17PM

6
#82 - Michael Pruglo / @michael-pruglo

02/09/2024 at 02:43PM

6
#83 - Steve Shi / @steveshi7

02/09/2024 at 11:27PM

6
#84 - RiskyDissonance / @riskydissonance

02/14/2024 at 10:41AM

6
#85 - Sebastian Steenssøe / @VildMedPap

02/17/2024 at 02:05PM

6
#86 - evgenii-kokorin / @evgenii-kokorin

02/17/2024 at 03:59PM

6
#87 - Tinko Minko / @tandikula

02/22/2024 at 05:13AM

6
#88 - Kristóf Cserpes / @KriCse

02/25/2024 at 04:48PM

6
#89 - Pablo Cárdenas / @pablo_cardenasb

02/28/2024 at 06:25AM

6
#90 - KeremKoksal / @KeremKoksal

02/29/2024 at 01:20PM