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

Sort entries based on date

Sort some entries in a Ledger-file based on date.

Start file
10.09.2011 Description
  Some
  Stuff

15.09.2011 * Anything really
  Random
  Stuff

12.10.2011 Nice
  Not
  Kidding

12.09.2011 Whatever
  Anything
  Can
  Be
  Here

14.09.2011 Cool
  But
  It's always
  Indented

13.09.2011 Testing
  Always
  2 spaces

End file
10.09.2011 Description
  Some
  Stuff

12.09.2011 Whatever
  Anything
  Can
  Be
  Here

13.09.2011 Testing
  Always
  2 spaces

14.09.2011 Cool
  But
  It's always
  Indented

15.09.2011 * Anything really
  Random
  Stuff

12.10.2011 Nice
  Not
  Kidding

View Diff

5,12d4
< 15.09.2011 * Anything really
<   Random
<   Stuff
< 
< 12.10.2011 Nice
<   Not
<   Kidding
< 
18a11,14
> 13.09.2011 Testing
>   Always
>   2 spaces
> 
24,26c20,26
< 13.09.2011 Testing
<   Always
<   2 spaces
---
> 15.09.2011 * Anything really
>   Random
>   Stuff
> 
> 12.10.2011 Nice
>   Not
>   Kidding

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 103 remaining solutions by signing in and submitting your own entry
#104 ajh / @AlexJHammel - Score: 80 - 12/24/12 @ 19:58
:%s/\v(\d+)\.(\d+)\.(\d+)/\3.2<BS>\2.\1<CR>:%s/\(..*\)\n/\1;/<CR>:sor<CR>:%s/;/\r/g<CR>:<Up><Up><Up><Up><CR>ZZ

0 comments


Created by: @judofyr

104 active golfers, 315 entries

Leaderboard (lowest score wins):
13
#61 - Jason Bruce / @jbrucenet

11/24/2011 at 04:31AM

13
#62 - Gabriel Barta / @gbarta

12/02/2011 at 12:22PM

13
#63 - Al / @96258

12/12/2011 at 11:31PM

13
#64 - pmuston / @pmuston

03/28/2012 at 05:57AM

13
#65 - Kerson Hsiao / @KersonHsiao

05/06/2012 at 07:34AM

14
#66 - Daniel Hjerth / @danielhjerth

11/09/2011 at 05:38PM

14
#67 - D A / @7187dd578b325d2

11/24/2011 at 12:13PM

14
#68 - John Anderson / @opejn

12/26/2011 at 06:25AM

14
#69 - Dave / @zzdave13

02/01/2012 at 11:20PM

14
#70 - Jiří Chára / @JiriChara

02/03/2012 at 12:09PM

14
#71 - perTheGolfer / @GolferPer

10/09/2020 at 07:57PM

15
#72 - Rik Lomas / @riklomas

12/18/2011 at 10:56PM

15
#73 - Burkhard Zimmermann / @BurkZimm

12/30/2011 at 08:55PM

15
#74 - TMcE / @t_mce

02/12/2012 at 12:46PM

15
#75 - Anouar ADLANI / @aadlani

07/12/2012 at 11:14PM

15
#76 - Reed Riley / @ReedRile

08/12/2012 at 10:28PM

15
#77 - brett / @brettyukich

09/23/2013 at 05:09AM

16
#78 - Jer Wilson / @superjercom

10/28/2011 at 07:52AM

16
#79 - Mattiassich Ákos / @mattiassicha

11/23/2011 at 06:48PM

17
#80 - twobit / @_2bt

01/04/2012 at 01:07AM

17
#81 - veki / @vx_ras

02/02/2012 at 08:10PM

17
#82 - Ram Tamtam / @ramtamtamtam

07/02/2014 at 01:18PM

17
#83 - Daniel / @Daniel00288663

04/06/2017 at 02:12PM

18
#84 - Dave@Highgroove / @HighgrooveDave

05/23/2012 at 02:46AM

18
#85 - Felipe Jaramillo F / @mrfelipe

06/02/2014 at 11:24PM

18
#86 - RockerZZY / @rocker_zzy

07/10/2020 at 12:44AM

19
#87 - Sergi Sorribas / @lerovitch

12/22/2011 at 12:43PM

20
#88 - Andy Pincombe / @ampersandy

10/29/2011 at 07:23PM

20
#89 - Øystein Walle / @oysteinwalle

11/09/2011 at 07:32PM

20
#90 - RusAlex Pletnev / @RusAlexander

11/14/2011 at 05:29PM