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

343 active golfers, 1558 entries

Leaderboard (lowest score wins):
7
#121 - John Xu / @xzzhiao

02/04/2024 at 12:51PM

7
#122 - Moogie2 / @Moogie2

02/05/2024 at 08:10AM

7
#123 - jonas-grobe / @jonas-grobe

02/05/2024 at 03:36PM

7
#124 - Игорь Квачёнок / @IKvacenok

02/09/2024 at 11:17PM

7
#125 - Luke Korn / @LukeKorn

02/14/2024 at 01:11PM

7
#126 - Anaritus / @Anaritus

02/22/2024 at 11:28PM

7
#127 - Alex / @AlexanderHeatl2

02/28/2024 at 03:01AM

7
#128 - かみひろ / @km_hr

03/02/2024 at 03:00AM

7
#129 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

03/08/2024 at 10:37AM

7
#130 - Kevin / @kebpiy

03/12/2024 at 04:31AM

7
#131 - Choan / @choan

03/17/2024 at 08:34AM

7
#132 - Euisoon Ahn / @esnahn

03/22/2024 at 08:11AM

7
#133 - mortonbevers / @mortonbevers

03/26/2024 at 02:53PM

7
#134 - Adv_Zxy / @adv_zxy

03/27/2024 at 06:29AM

7
#135 - Jiacong Fang / @zldrobit

03/30/2024 at 03:09PM

7
#136 - Peppa Pig / @PeppaPi95550250

04/05/2024 at 04:34PM

7
#137 - Lennart / @lennartack

04/13/2024 at 07:27PM

7
#138 - logerse / @logerse

04/15/2024 at 04:44PM

7
#139 - Valentin Vikhorev / @vvihorev

04/15/2024 at 08:45PM

8
#140 - TimMcGuire / @mcguire

12/19/2023 at 12:51AM

8
#141 - mrmujo / @mrmujo

12/21/2023 at 11:46AM

8
#142 - epsilonshnepsilon / @epsilonshnepsilon

01/15/2024 at 01:02PM

8
#143 - tkin91e55 / @tkin91e55

01/18/2024 at 09:51AM

9
#144 - Vlad Yaglamunov / @VladYaglamunov

12/06/2023 at 01:44PM

9
#145 - josh-pius / @josh-pius

12/07/2023 at 05:53PM

9
#146 - Ravi S Sinha / @ambidextrousTx

12/10/2023 at 06:48PM

9
#147 - DocsSorted / @DocsSorted

12/13/2023 at 07:09PM

9
#148 - shucks / @arclaxton

01/05/2024 at 09:39PM

9
#149 - x94ru / @x94ru

02/02/2024 at 05:19AM

16
#150 - Viswajith / @Viswajith444

04/20/2024 at 09:43AM