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 193 remaining solutions by signing in and submitting your own entry
#194 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

194 active golfers, 489 entries

Leaderboard (lowest score wins):
17
#121 - Javier Blanco / @jbgutierrez

05/23/2012 at 07:21PM

17
#122 - OMF / @exolon

05/25/2012 at 12:42PM

17
#123 - Øystein Walle / @oysteinwalle

05/31/2012 at 06:22PM

17
#124 - Asenar / @asenar

06/02/2012 at 04:14PM

17
#125 - Josh Steiner / @josh_steiner

06/12/2012 at 01:09AM

17
#126 - utopiah / @utopiah

06/13/2012 at 09:56AM

17
#127 - Eric Söderström / @eksoderstrom

07/20/2012 at 03:48PM

17
#128 - Glen / @Glen_S

07/25/2012 at 04:04AM

17
#129 - Rahul Savani / @rahul_savani

08/11/2012 at 06:14PM

17
#130 - Michael Limiero / @michaellimiero

08/14/2012 at 03:52PM

17
#131 - Jordan Scales / @prezjordan

08/18/2012 at 02:03AM

17
#132 - mhb / @mhbvim

09/18/2012 at 09:54AM

17
#133 - matthew keesan / @keesan

10/23/2012 at 02:03PM

17
#134 - Nicolas Friedli / @NicolasFriedli

10/28/2012 at 10:47AM

17
#135 - Adam Dratwinski / @adwinsky

11/27/2012 at 08:35PM

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

12/12/2012 at 11:17AM

17
#137 - cj / @cj01101

08/16/2013 at 10:15PM

17
#138 - James / @Dronak

08/29/2013 at 06:12PM

17
#139 - Hachez Floran / @FloranHachez

09/06/2013 at 11:03PM

17
#140 - brett / @brettyukich

09/22/2013 at 04:33AM

17
#141 - Oliver Christ / @0liverChrist

09/27/2013 at 10:27PM

17
#142 - Sam Burk / @smwbk

12/21/2013 at 05:53AM

17
#143 - João Paiva / @jgpaiva

02/03/2014 at 06:44PM

17
#144 - Quota / @Quotad

02/06/2014 at 09:35AM

17
#145 - Ben Lambeth / @azy2_ben

02/13/2014 at 07:06PM

17
#146 - barnabaguy / @barnabaguy

02/23/2014 at 09:24AM

17
#147 - CJ Avilla / @cjav_dev

05/10/2014 at 03:33AM

17
#148 - Kyle Travis / @kmakai

05/16/2014 at 10:59PM

17
#149 - Justin Knag / @justinknag

08/28/2014 at 04:33PM

17
#150 - Walker Boh / @walker_boh

11/17/2015 at 12:34PM