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):
34
#361 - SangYeop, Ha / @ssayebee

11/16/2023 at 04:15AM

34
#362 - Gabriel Augendre / @Crocmagnon

02/15/2024 at 11:52PM

34
#363 - mst_ysk / @mstysk

03/04/2024 at 03:15AM

35
#364 - Pvvo / @Pvvo

02/02/2024 at 09:07AM

35
#365 - wlanlll / @wlanlll

09/27/2024 at 08:29AM

35
#366 - hidehic0 / @hidehic0

12/30/2024 at 06:57AM

36
#367 - Charon / @logTXT

04/10/2024 at 06:33PM

36
#368 - Ty Kroll / @tkroll

05/01/2024 at 04:48PM

37
#369 - Divyansh Tripathi / @theoden42

11/09/2023 at 11:35AM

37
#370 - 赵火龙 / @P9srNn4b741jocf

11/30/2023 at 10:01AM

37
#371 - Vigneshkumar Chinnachamy / @vigneshTheDev

12/08/2023 at 11:45AM

38
#372 - kawauso / @kawauso71901970

10/17/2023 at 03:04PM

38
#373 - Adrien Beudin / @beudbeud

12/11/2023 at 10:10AM

38
#374 - k84d / @k84d

01/29/2024 at 04:19AM

38
#375 - Ivan De Dios / @IvantheDugtrio

05/10/2024 at 11:28PM

39
#376 - Adrián Fidalgo-Díaz / @adrianFD22

12/15/2023 at 09:06PM

39
#377 - 안치산 / @chisanahn

12/26/2023 at 06:39AM

39
#378 - zhihongCai / @zhihongCai

01/11/2024 at 05:38AM

39
#379 - Andy / @andyfoster

04/05/2024 at 09:57AM

40
#380 - Djairo / @djairoh

12/04/2023 at 06:57PM

41
#381 - Sébastien Matharel / @s_cognac

10/23/2023 at 09:42PM

41
#382 - rasputins / @rasputins

01/02/2024 at 07:02AM

41
#383 - dian wu / @Wudian9Wu

01/27/2024 at 02:51PM

42
#384 - Matt Shen / @mattshen

01/23/2024 at 01:59AM

43
#385 - ngo-trong-quan / @quanngotrong

11/30/2023 at 04:57AM

43
#386 - t-suzuki-carrot / @t-suzuki-carrot

06/24/2024 at 07:23AM

44
#387 - efettf / @efettf

11/01/2024 at 07:10PM

45
#388 - Shumpei IINUMA / @iinm

01/02/2025 at 03:37AM

46
#389 - José I. Escudero / @xjose97x

02/28/2024 at 03:05AM

49
#390 - fpsppty / @fpsppty

03/30/2024 at 10:06PM