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

Reverse and double space

Reverse the order of the given lines and double space everything

Start file
1. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
2. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui.
3. Aenean eu leo quam.
4. Pellentesque ornare sem lacinia quam venenatis vestibulum.
5. Aenean lacinia bibendum nulla sed consectetur.
End file
5. Aenean lacinia bibendum nulla sed consectetur.

4. Pellentesque ornare sem lacinia quam venenatis vestibulum.

3. Aenean eu leo quam.

2. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui.

1. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.

View Diff

1,4d0
< 1. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
< 2. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui.
< 3. Aenean eu leo quam.
< 4. Pellentesque ornare sem lacinia quam venenatis vestibulum.
5a2,10
> 
> 4. Pellentesque ornare sem lacinia quam venenatis vestibulum.
> 
> 3. Aenean eu leo quam.
> 
> 2. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui.
> 
> 1. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
> 

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 178 remaining solutions by signing in and submitting your own entry
#179 Noel Alejandro / @noelrock333 - Score: 77 - 06/23/12 @ 00:55
:%s/s<BS>s<BS><BS>/x<BS>2<BS>.$.<BS>/.|<BS>\<BS>'<BS>\r/<CR>jkdd!G<BS><BS><BS>1GP<Down>dd8Gp3Gdd6Gpkddd2Gup<Esc>uudd2Gp<Esc>:w<CR><C-W>q

0 comments


Created by: @twosoul

179 active golfers, 433 entries

Leaderboard (lowest score wins):
17
#121 - Jordan Scales / @prezjordan

08/18/2012 at 02:03AM

17
#122 - mhb / @mhbvim

09/18/2012 at 09:54AM

17
#123 - matthew keesan / @keesan

10/23/2012 at 02:03PM

17
#124 - Nicolas Friedli / @NicolasFriedli

10/28/2012 at 10:47AM

17
#125 - Adam Dratwinski / @adwinsky

11/27/2012 at 08:35PM

17
#126 - Pradeep Kumar 🇮🇳🇮🇳🇮🇳🇮🇱🇮🇱🇮🇱 / @pradeep6kumar

12/12/2012 at 11:17AM

17
#127 - cj / @cj01101

08/16/2013 at 10:15PM

17
#128 - James / @Dronak

08/29/2013 at 06:12PM

17
#129 - Hachez Floran / @FloranHachez

09/06/2013 at 11:03PM

17
#130 - brett / @brettyukich

09/22/2013 at 04:33AM

17
#131 - Oliver Christ / @0liverChrist

09/27/2013 at 10:27PM

17
#132 - Sam Burk / @smwbk

12/21/2013 at 05:53AM

17
#133 - João Paiva / @jgpaiva

02/03/2014 at 06:44PM

17
#134 - Quota / @Quotad

02/06/2014 at 09:35AM

17
#135 - Ben Lambeth / @azy2_ben

02/13/2014 at 07:06PM

17
#136 - barnabaguy / @barnabaguy

02/23/2014 at 09:24AM

17
#137 - CJ Avilla / @wizemanip

05/10/2014 at 03:33AM

17
#138 - Kyle Travis / @kmakai

05/16/2014 at 10:59PM

17
#139 - Justin Knag / @justinknag

08/28/2014 at 04:33PM

17
#140 - Walker Boh / @walker_boh

11/17/2015 at 12:34PM

17
#141 - Brandon Blakeley / @zkelvin

11/25/2017 at 11:58PM

17
#142 - jake worth / @jwworth

01/29/2020 at 02:01AM

17
#143 - Raman Venugopal / @raman162

01/29/2020 at 02:02AM

18
#144 - Daniel Lundin / @danielundin

05/04/2012 at 10:19AM

18
#145 - magdzikk / @magdzikk1

05/18/2012 at 08:56PM

18
#146 - Underhill Labs / @underhilllabs

10/29/2012 at 03:44PM

18
#147 - Saxon Unrue / @joeunrue

11/09/2012 at 01:34PM

18
#148 - Dave Aitken / @actionshrimp

08/27/2013 at 07:07PM

18
#149 - Tj / @yrddy

08/19/2014 at 11:26AM

18
#150 - George Angelopoulos / @g_usermod

08/05/2016 at 01:59PM