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):
16
#91 - John Papanastasiou / @JohnPapps

08/27/2013 at 12:49PM

16
#92 - Zach Kemp / @zvksf

12/24/2013 at 05:27AM

16
#93 - Caek / @Caek_

07/29/2014 at 11:50AM

16
#94 - LC / @leeren

08/10/2014 at 09:20PM

16
#95 - ltn614 / @ltn614

09/27/2015 at 06:26AM

16
#96 - Will / @obiwan__k3n00bi

08/25/2016 at 02:37AM

16
#97 - DHM / @DHM29978992

05/03/2018 at 01:54AM

17
#98 - h_east (トロッコ6個) / @h_east

05/02/2012 at 02:51AM

17
#99 - Henri Wiechers / @hwiechers

05/02/2012 at 04:34AM

17
#100 - vall / @provall1

05/04/2012 at 11:28AM

17
#101 - Kerson Hsiao / @KersonHsiao

05/05/2012 at 03:09PM

17
#102 - Mattiassich Ákos / @mattiassicha

05/06/2012 at 05:15AM

17
#103 - Jez Cope / @jezcope

05/06/2012 at 07:28PM

17
#104 - Fabien Pelletier / @FabPelletier

05/07/2012 at 01:25AM

17
#105 - Gavin Rogers / @KC9KVQ

05/07/2012 at 08:09PM

17
#106 - Alex Arnell / @alexarnell

05/07/2012 at 10:54PM

17
#107 - Dave C / @dmlc133

05/10/2012 at 01:08PM

17
#108 - Julio Silva / @9jb

05/14/2012 at 08:27PM

17
#109 - Christopher Brew / @Seph1rothVII

05/18/2012 at 09:27PM

17
#110 - Chris Dahms / @zentrified

05/20/2012 at 08:15PM

17
#111 - Javier Blanco / @jbgutierrez

05/23/2012 at 07:21PM

17
#112 - OMF / @exolon

05/25/2012 at 12:42PM

17
#113 - Øystein Walle / @oysteinwalle

05/31/2012 at 06:22PM

17
#114 - Asenar / @asenar

06/02/2012 at 04:14PM

17
#115 - Josh Steiner / @josh_steiner

06/12/2012 at 01:09AM

17
#116 - utopiah / @utopiah

06/13/2012 at 09:56AM

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

07/20/2012 at 03:48PM

17
#118 - Glen / @Glen_S

07/25/2012 at 04:04AM

17
#119 - Rahul Savani / @rahul_savani

08/11/2012 at 06:14PM

17
#120 - Michael Limiero / @michaellimiero

08/14/2012 at 03:52PM