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 441 remaining solutions by signing in and submitting your own entry
#442 MountainHS / @MountainHS - Score: 434 - 03/12/25 @ 06:54
whhh9G3Wkkkkkkkkkkkkkkkkk0w"0dw:reg<CR>$dwuuwdw$dw<C-O><Tab><Tab><C-O><C-O><C-O><C-O><C-O><C-O><C-O><Tab><Tab><C-O>02wpu:reg<CR>puPa <Esc>$pu"1p:reg<CR><Esc><Esc>"0pwjkkkwwwwcwxx<Esc>$bbc<Esc>bbcwxx<Esc><C-O><C-O><C-O>bbbbbdpxxpu:reg<CR><Esc>uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuubbwrx<Esc>$uwRxxx<Esc>:reg<CR><Esc>udwixxx <Esc>w$dwax<Esc>0ww:reg<CR><Esc>dwpu:reg<CR>udwi2 <Esc>A<BS>144<Esc>bbbbi^<Esc>0wwwwi^<Esc>lhde13i13<Esc>wwui89<Esc>wwd<Esc>uudwuce13w<BS><Esc>wwcw<Esc>ce89<BS><BS> 89<Esc>hhhxi21<Esc>0dwi5 <Esc>wi^<Esc>wwwwbi^<Esc>lxuxi8<Esc>bbbxi3<Esc>hxwwxhhxir<Esc>uur5<Esc>0r2<Esc>wwwwwwwwhhhhhhcw55w<BS><Esc>wwcw89<Esc>hhhhhhhcw34<Esc>wucw34w<BS><Esc>wcw55<Esc>:w<CR>ZZ

0 comments


Created by: @normalmo_de

442 active golfers, 2005 entries

Leaderboard (lowest score wins):
6
#121 - Radim Mifka / @mifka01

08/02/2024 at 09:39AM

6
#122 - michirakara / @michirakara

08/02/2024 at 11:15PM

6
#123 - Josh Cummings / @joshcummingsdesign

08/22/2024 at 10:53PM

6
#124 - Adi / @adi2004

09/22/2024 at 05:23PM

6
#125 - Qingz / @Noct943

10/08/2024 at 08:08PM

6
#126 - Shoob / @martinshoob

10/14/2024 at 12:30PM

6
#127 - Berel94 / @Berel94

11/07/2024 at 07:52PM

6
#128 - Pim / @Pireax

11/08/2024 at 02:56AM

6
#129 - dlum20 / @dlum20

11/24/2024 at 01:03AM

6
#130 - 中矢 悠貴 / @Glacialte

12/12/2024 at 07:17AM

6
#131 - nicochu / @nicouncle

02/19/2025 at 03:47AM

6
#132 - Leo / @Leoduck

02/26/2025 at 12:49AM

6
#133 - Abdelrahman Madkour / @a3madkour

03/29/2025 at 10:28PM

6
#134 - DrymarchonShaun / @DrymarchonShaun

04/27/2025 at 03:12AM

7
#135 - Aiden Yang / @yangxnn

12/15/2023 at 07:36AM

7
#136 - Noah Moss / @noahmoss

12/20/2023 at 02:58AM

7
#137 - hatena / @rotwm

12/23/2023 at 08:58PM

7
#138 - Romunkulus / @Romunkulus

01/04/2024 at 12:25AM

7
#139 - Milan Blažek / @Somin13

01/04/2024 at 02:41PM

7
#140 - A White Dwarf / @AWhiteDwarf1

01/08/2024 at 07:38PM

7
#141 - 3akur6 / @3akur6

01/23/2024 at 06:56AM

7
#142 - ilyas / @Ahaaah2071

01/24/2024 at 12:32PM

7
#143 - ye-chuan / @ye-chuan

01/24/2024 at 03:01PM

7
#144 - 吃鱼 / @xwwd9

01/29/2024 at 04:45AM

7
#145 - maxdarling / @maxdarling

02/03/2024 at 08:13PM

7
#146 - John Xu / @xzzhiao

02/04/2024 at 12:51PM

7
#147 - Moogie2 / @Moogie2

02/05/2024 at 08:10AM

7
#148 - jonas-grobe / @jonas-grobe

02/05/2024 at 03:36PM

7
#149 - someone / @IKvacenok

02/09/2024 at 11:17PM

7
#150 - Luke Korn / @LukeKorn

02/14/2024 at 01:11PM