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


#199 nickGPT / @nickandbro - Score: 77 - 08/28/24 @ 20:57
:%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

199 active golfers, 500 entries

Leaderboard (lowest score wins):
17
#121 - Christopher Brew / @Seph1rothVII

05/18/2012 at 09:27PM

17
#122 - Chris Dahms / @zentrified

05/20/2012 at 08:15PM

17
#123 - Javier Blanco / @jbgutierrez

05/23/2012 at 07:21PM

17
#124 - OMF / @exolon

05/25/2012 at 12:42PM

17
#125 - Øystein Walle / @oysteinwalle

05/31/2012 at 06:22PM

17
#126 - Asenar / @asenar

06/02/2012 at 04:14PM

17
#127 - Josh Steiner / @josh_steiner

06/12/2012 at 01:09AM

17
#128 - utopiah / @utopiah

06/13/2012 at 09:56AM

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

07/20/2012 at 03:48PM

17
#130 - Glen / @Glen_S

07/25/2012 at 04:04AM

17
#131 - Rahul Savani / @rahul_savani

08/11/2012 at 06:14PM

17
#132 - Michael Limiero / @michaellimiero

08/14/2012 at 03:52PM

17
#133 - Jordan Scales / @prezjordan

08/18/2012 at 02:03AM

17
#134 - mhb / @mhbvim

09/18/2012 at 09:54AM

17
#135 - matthew keesan / @keesan

10/23/2012 at 02:03PM

17
#136 - Nicolas Friedli / @NicolasFriedli

10/28/2012 at 10:47AM

17
#137 - Adam Dratwinski / @adwinsky

11/27/2012 at 08:35PM

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

12/12/2012 at 11:17AM

17
#139 - cj / @cj01101

08/16/2013 at 10:15PM

17
#140 - James / @Dronak

08/29/2013 at 06:12PM

17
#141 - Hachez Floran / @FloranHachez

09/06/2013 at 11:03PM

17
#142 - brett / @brettyukich

09/22/2013 at 04:33AM

17
#143 - Oliver Christ / @0liverChrist

09/27/2013 at 10:27PM

17
#144 - Sam Burk / @smwbk

12/21/2013 at 05:53AM

17
#145 - João Paiva / @jgpaiva

02/03/2014 at 06:44PM

17
#146 - Quota / @Quotad

02/06/2014 at 09:35AM

17
#147 - Ben Lambeth / @azy2_ben

02/13/2014 at 07:06PM

17
#148 - barnabaguy / @barnabaguy

02/23/2014 at 09:24AM

17
#149 - CJ Avilla / @cjav_dev

05/10/2014 at 03:33AM

17
#150 - Kyle Travis / @kmakai

05/16/2014 at 10:59PM