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):
41
#391 - dian wu / @Wudian9Wu

01/27/2024 at 02:51PM

42
#392 - Matt Shen / @mattshen

01/23/2024 at 01:59AM

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

11/30/2023 at 04:57AM

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

06/24/2024 at 07:23AM

44
#395 - efettf / @efettf

11/01/2024 at 07:10PM

45
#396 - Shumpei IINUMA / @iinm

01/02/2025 at 03:37AM

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

02/28/2024 at 03:05AM

49
#398 - fpsppty / @fpsppty

03/30/2024 at 10:06PM

49
#399 - Shuhei Kozasa / @shu-13

05/23/2024 at 01:01AM

50
#400 - Sachin Mudaliyar / @s4ch1n_

10/14/2023 at 08:58AM

50
#401 - Karen Mkrtumyan / @KARM99

08/31/2024 at 02:31PM

51
#402 - welandx / @welandx

01/03/2024 at 01:12PM

52
#403 - quatrix / @quatrix

11/06/2023 at 02:00PM

52
#404 - bstadlbauer / @bstadlbauer

01/08/2024 at 04:31PM

53
#405 - Chris Atanasian / @chrisatanasian

11/16/2023 at 05:11AM

53
#406 - Blancheurcn / @Blancheurcn

04/03/2024 at 06:09AM

54
#407 - Kento Nishio / @ken2403

08/23/2024 at 09:49AM

57
#408 - Ivan Dimitrov / @ivandimitrov8080

11/28/2023 at 04:34PM

57
#409 - dev SW / @seowoo0730

01/03/2024 at 08:55AM

58
#410 - Aristella / @aristella

03/24/2024 at 10:39PM

60
#411 - Danny Iachini / @diachini

01/26/2024 at 06:21PM

63
#412 - Josh Ramer / @josh-ramer

11/11/2023 at 03:05AM

64
#413 - V / @account_test_k

12/04/2023 at 01:07PM

66
#414 - PL Siddharth / @Havok1993

10/08/2023 at 11:18PM

66
#415 - zehaoahao liu / @zehaoahao14210

10/22/2023 at 09:32AM

67
#416 - Hsieh Chin Fan / @typebrook

11/10/2023 at 08:52AM

68
#417 - Bradley / @bradley_al42

10/15/2023 at 03:56AM

68
#418 - Alexander Ruiztagle / @aruiz_tagle

01/28/2024 at 11:07AM

70
#419 - jpggpj / @jpggpj

12/10/2023 at 12:08PM

70
#420 - Dyson / @DoctorDalek1963

01/24/2024 at 02:52PM