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
#151 - Brandon Blakeley / @zkelvin

11/25/2017 at 11:58PM

17
#152 - Jake Worth / @jwworth

01/29/2020 at 02:01AM

17
#153 - Raman Venugopal / @raman162

01/29/2020 at 02:02AM

17
#154 - Thomas Hiron / @thomashiron

02/23/2023 at 02:42PM

18
#155 - Daniel Lundin / @danielundin

05/04/2012 at 10:19AM

18
#156 - magdzikk / @magdzikk1

05/18/2012 at 08:56PM

18
#157 - Underhill Labs / @underhilllabs

10/29/2012 at 03:44PM

18
#158 - Saxon Unrue / @joeunrue

11/09/2012 at 01:34PM

18
#159 - Dave Aitken / @actionshrimp

08/27/2013 at 07:07PM

18
#160 - Tj / @yrddy

08/19/2014 at 11:26AM

18
#161 - George Angelopoulos / @g_usermod

08/05/2016 at 01:59PM

18
#162 - tomb0y / @tomb0_0y

06/01/2017 at 05:07PM

18
#163 - Ainsley McGrath / @whole_grainsley

01/29/2020 at 02:00AM

18
#164 - POSIX / @po6ix

02/02/2022 at 02:16PM

19
#165 - ise0615 / @ise0615

05/02/2012 at 06:15PM

19
#166 - Eric Weikl / @ericweikl

05/02/2012 at 07:49PM

19
#167 - Jacob Vosmaer / @jacobvosmaer

06/03/2012 at 01:42PM

19
#168 - captain_morgan / @captain_morgan

06/05/2012 at 09:59AM

19
#169 - Tyler Breisacher / @tbreisacher

08/25/2012 at 06:10AM

19
#170 - Arto Vuori / @dhpe

08/31/2012 at 07:43PM

19
#171 - Karun Ramakrishnan / @the_karun

04/08/2013 at 05:58PM

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

07/15/2013 at 10:28AM

19
#173 - Endir / @Endir2

04/18/2014 at 01:43PM

19
#174 - Brandon / @Brandon10678836

08/31/2022 at 02:02PM

19
#175 - steve / @steve35773420

03/04/2023 at 02:15PM

20
#176 - Mac Heller-Ogden / @twosoul

05/02/2012 at 12:52AM

20
#177 - Ricardo Mendes / @locks

05/02/2012 at 01:07AM

20
#178 - Will Furnass / @WillFurnass

05/16/2012 at 02:12PM

20
#179 - Viswanath Sivakumar / @viswanathgs

08/30/2012 at 09:05PM

20
#180 - RockerZZY / @rocker_zzy

06/06/2020 at 04:33AM