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):
18
#151 - tomb0y / @tomb0_0y

06/01/2017 at 05:07PM

18
#152 - Ainsley McGrath / @whole_grainsley

01/29/2020 at 02:00AM

19
#153 - ise0615 / @ise0615

05/02/2012 at 06:15PM

19
#154 - Eric Weikl / @ericweikl

05/02/2012 at 07:49PM

19
#155 - Jacob Vosmaer / @jacobvosmaer

06/03/2012 at 01:42PM

19
#156 - captain_morgan / @captain_morgan

06/05/2012 at 09:59AM

19
#157 - Tyler Breisacher / @tbreisacher

08/25/2012 at 06:10AM

19
#158 - Arto Vuori / @dhpe

08/31/2012 at 07:43PM

19
#159 - Karun Ramakrishnan / @the_karun

04/08/2013 at 05:58PM

19
#160 - Woojung Kim 김우중 / @_kimwz

07/15/2013 at 10:28AM

19
#161 - Endir / @Endir2

04/18/2014 at 01:43PM

20
#162 - Mac Heller-Ogden / @twosoul

05/02/2012 at 12:52AM

20
#163 - Ricardo Mendes / @locks

05/02/2012 at 01:07AM

20
#164 - Will Furnass / @WillFurnass

05/16/2012 at 02:12PM

20
#165 - Viswanath Sivakumar / @viswanathgs

08/30/2012 at 09:05PM

20
#166 - RockerZZY / @rocker_zzy

06/06/2020 at 04:33AM

21
#167 - JustGage / @JustGage

09/03/2012 at 07:24AM

21
#168 - NuM / @NuM314

10/05/2013 at 11:32PM

21
#169 - Alessandro Lisander / @wuiimu

01/06/2014 at 09:38AM

22
#170 - J Paul Daigle / @philosodad

05/23/2012 at 07:06PM

22
#171 - Alex Bartol / @alexbartol

05/06/2015 at 06:30AM

24
#172 - Jurica / @Jurica34581259

12/13/2018 at 04:58PM

25
#173 - Viktor Jackson / @AntiStalinista

05/05/2012 at 03:16AM

27
#174 - bsjd / @bsjd

05/07/2012 at 05:31PM

34
#175 - Thijs Brobbel / @tiesmaster

05/29/2012 at 12:59PM

35
#176 - Brent Woo / @BrentPWoo

10/16/2018 at 08:07PM

37
#177 - Gurukandhamoorthi / @Gurukandhamoor1

07/30/2017 at 03:12PM

40
#178 - mindgitrwx / @mindgitrwx

08/25/2020 at 02:25PM

77
#179 - Noel Alejandro / @noelrock333

06/23/2012 at 12:55AM