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

380 active golfers, 1735 entries

Leaderboard (lowest score wins):
68
#361 - Alexander Ruiztagle / @aruiz_tagle

01/28/2024 at 11:07AM

70
#362 - jpggpj / @jpggpj

12/10/2023 at 12:08PM

70
#363 - Dyson / @DoctorDalek1963

01/24/2024 at 02:52PM

74
#364 - Olivier Roos / @OGR-67

11/09/2023 at 09:06AM

75
#365 - Ahmed Elsalahy / @elsalahy

12/03/2023 at 03:24PM

77
#366 - Jan Troest / @jan_troest

10/30/2023 at 09:15PM

79
#367 - zhangcan / @zeroziwei

01/20/2024 at 05:59AM

82
#368 - Prim Jack / @jack_prim72100

10/05/2023 at 08:41PM

86
#369 - Shubham / @shoebham

01/23/2024 at 04:51PM

88
#370 - Albert Mojir / @mojir

11/16/2023 at 08:23AM

88
#371 - Razzi #FreePalestine / @Razzzzi

12/03/2023 at 04:32AM

88
#372 - Johan-Pedersen / @Johan-Pedersen

04/20/2024 at 03:42PM

89
#373 - stolz / @Hello-Justify

12/06/2023 at 06:40AM

91
#374 - Matan Avitan / @MatanAvitan

05/04/2024 at 02:52PM

102
#375 - Jake Gerard / @jakegerard18

11/11/2023 at 07:14AM

103
#376 - Jacob Sun / @jacobsun000

01/10/2024 at 09:15AM

105
#377 - RyanLennonCleary / @RyanLennonCleary

01/14/2024 at 03:16AM

154
#378 - Patrick Cheng / @patcheng

03/31/2024 at 05:24PM

189
#379 - Paul Tissot-Daguette / @goodtimeswithpaul

03/25/2024 at 05:29PM

329
#380 - 윤지환 / @doilche

03/22/2024 at 11:31AM