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 4fe9ab8b5089660001000002

Shuffle and Sort

The values where sorted incorrectly. Get them back to how they are supposed to be

Start file
a,b,c,d,e
a
,b,c,d,e
a
,b,c,d,e
a
,b,c,d,e
a
,b,c,d,e
End file
d,e,a,b,c
e
,a,b,c,d
a
,b,c,d,e
b
,c,d,e,a
c
,d,e,a,b

View Diff

0a1,2
> d,e,a,b,c
> e,a,b,c,d
2,5c4,5
< a,b,c,d,e
< a,b,c,d,e
< a,b,c,d,e
< a,b,c,d,e
---
> b,c,d,e,a
> c,d,e,a,b

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 68 remaining solutions by signing in and submitting your own entry
#69 mojito04 / @mojito04 - Score: 68 - 04/24/25 @ 21:02
<C-C><C-C>llll<Esc>h0<Esc><C-V>lllllxA<Esc>pi,<Esc>A<Esc>x<Esc>jhxx<Esc>0ie,<Esc><Esc>jjhxxA,a<Esc><Esc>j04d4xxxxxA<Tab><BS>,a,b<Esc>ZZ

0 comments


Created by: @psasqw

69 active golfers, 233 entries

Leaderboard (lowest score wins):
23
#31 - vansan / @VinceVansan

08/23/2012 at 05:56PM

24
#32 - Daniel Lundin / @danielundin

07/04/2012 at 12:08PM

24
#33 - Ahn Wooseon / @ahnwooseon

07/05/2012 at 04:58AM

24
#34 - Catalin Ciurea / @catalinciurea

08/18/2012 at 08:02PM

24
#35 - じょんあば / @john_ababa

09/16/2012 at 07:24AM

24
#36 - Marcin Szamotulski / @me_coot

10/16/2012 at 09:12AM

24
#37 - cj / @cj01101

10/21/2013 at 10:31PM

25
#38 - Nipunn Koorapati / @nipunn1313

07/17/2012 at 05:04PM

26
#39 - Gary Fixler / @gfixler

06/30/2012 at 10:23PM

26
#40 - Sebastian Siadek / @SebSiadek

07/06/2012 at 09:07AM

26
#41 - RockerZZY / @rocker_zzy

08/31/2020 at 12:48PM

26
#42 - James / @Dronak

12/02/2022 at 07:17PM

27
#43 - Alexey Morozov / @alexeysmorozov

06/26/2012 at 06:41PM

27
#44 - J Paul Daigle / @philosodad

07/06/2012 at 04:35PM

27
#45 - Tom Sisk / @TomSisk

07/22/2012 at 08:47AM

27
#46 - annagrammatica1 / @annagrammatica1

08/02/2012 at 06:04AM

27
#47 - Vasil Sakarov / @vsakarov

09/02/2012 at 11:25AM

27
#48 - Maxim Semikin / @O_caliber_O

07/18/2016 at 09:01PM

28
#49 - abernardes / @abernardes

06/26/2012 at 03:19PM

28
#50 - Trevor Powell / @DoomedBunnies

07/04/2012 at 06:11AM

28
#51 - Drew Benedetti / @cnorsl

07/17/2012 at 07:16PM

28
#52 - Sean Griffin / @sgrif

08/13/2012 at 12:23AM

28
#53 - Martin Petrov / @mgpetrov

08/22/2012 at 11:50AM

28
#54 - Sune Simonsen / @sunesimonsen

08/25/2012 at 04:33PM

29
#55 - Mateusz Zawisza / @mateuszzawisza

06/26/2012 at 01:31PM

29
#56 - John Whitley / @johnwhitley

06/27/2012 at 05:16PM

29
#57 - Jordan Sitkin / @DustMason

07/29/2012 at 07:55PM

29
#58 - Joachim / @jodles89

09/11/2012 at 07:33PM

29
#59 - Lieven Keersmaekers / @LievenKeersmaek

11/23/2012 at 07:18PM

30
#60 - Ben Kittrell / @bgkittrell

06/27/2012 at 02:39PM