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):
25
#211 - Maurice Schmicking / @m_schmicking

10/24/2023 at 09:31AM

25
#212 - cpif / @cpif

11/07/2023 at 08:34PM

25
#213 - Orks / @OrkWard

11/18/2023 at 09:30AM

25
#214 - Jesús Jiménez / @j3wi

11/30/2023 at 11:25AM

25
#215 - Bastien Batardière / @Bastien-mva

12/04/2023 at 08:00PM

25
#216 - Aiden Yang / @aidenyangnn

12/15/2023 at 07:23AM

25
#217 - peccoth / @peccoth

01/04/2024 at 01:49PM

25
#218 - Vladimir Golubev / @vvgolubev

01/06/2024 at 07:11PM

25
#219 - ya-suke / @ysxninja

02/12/2024 at 07:47PM

25
#220 - Penbu / @penbuvt

02/16/2024 at 01:22AM

25
#221 - Chinmay Dalal / @p00f

03/12/2024 at 09:15AM

25
#222 - Let-me-C / @Let-me-C

03/12/2024 at 03:10PM

25
#223 - Camille Masset / @tizot

03/15/2024 at 10:24PM

26
#224 - oboki / @happy_oboki

10/18/2023 at 06:01AM

26
#225 - YoungDong Kim / @zeroest

11/19/2023 at 07:23AM

26
#226 - Alfred Tso / @alfredtso

11/22/2023 at 07:03AM

26
#227 - e1mnos / @e1mnos

11/30/2023 at 03:25PM

26
#228 - AWildSheep / @AWildSheep

12/04/2023 at 07:29PM

26
#229 - drewma2k / @drewma2k

02/08/2024 at 07:11PM

26
#230 - Jon E. Eguiluz 🏳️‍🌈 / @viroide

02/21/2024 at 02:58PM

26
#231 - Adrien Pasquereau / @AdrienPasquereau

02/26/2024 at 06:17PM

26
#232 - marcelborbus / @marcelborbus

03/03/2024 at 03:11PM

26
#233 - shikitanrei / @shikitanrei

03/15/2024 at 03:00PM

26
#234 - Kamil Laskowski / @kmlskw

03/17/2024 at 10:42PM

27
#235 - Hans / @hmuendel

10/05/2023 at 09:21PM

27
#236 - None / @sh1chuang

10/16/2023 at 11:56AM

27
#237 - Cammy / @desert_silo

10/23/2023 at 08:50PM

27
#238 - Josh Pius / @JoshPius98

12/07/2023 at 05:32PM

27
#239 - Henrique Malheiro / @rike09

12/11/2023 at 11:51AM

27
#240 - João Britto / @joaobrittoneto

01/08/2024 at 08:49PM