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
#151 - Justin Knag / @justinknag

08/28/2014 at 04:33PM

17
#152 - Walker Boh / @walker_boh

11/17/2015 at 12:34PM

17
#153 - Brandon Blakeley / @zkelvin

11/25/2017 at 11:58PM

17
#154 - Jake Worth / @jwworth

01/29/2020 at 02:01AM

17
#155 - Raman Venugopal / @raman162

01/29/2020 at 02:02AM

17
#156 - Thomas Hiron / @thomashiron

02/23/2023 at 02:42PM

17
#157 - xiaoao1024 / @xiaoao1024

05/06/2024 at 11:37AM

18
#158 - Daniel Lundin / @danielundin

05/04/2012 at 10:19AM

18
#159 - magdzikk / @magdzikk1

05/18/2012 at 08:56PM

18
#160 - Underhill Labs / @underhilllabs

10/29/2012 at 03:44PM

18
#161 - Saxon Unrue / @joeunrue

11/09/2012 at 01:34PM

18
#162 - Dave Aitken / @actionshrimp

08/27/2013 at 07:07PM

18
#163 - Tj / @yrddy

08/19/2014 at 11:26AM

18
#164 - George Angelopoulos / @g_usermod

08/05/2016 at 01:59PM

18
#165 - tomb0y / @tomb0_0y

06/01/2017 at 05:07PM

18
#166 - Ainsley McGrath / @whole_grainsley

01/29/2020 at 02:00AM

18
#167 - POSIX / @po6ix

02/02/2022 at 02:16PM

18
#168 - 🥚 / @schmarles_

10/29/2024 at 09:08PM

19
#169 - ise0615 / @ise0615

05/02/2012 at 06:15PM

19
#170 - Eric Weikl / @ericweikl

05/02/2012 at 07:49PM

19
#171 - Jacob Vosmaer / @jacobvosmaer

06/03/2012 at 01:42PM

19
#172 - captain_morgan / @captain_morgan

06/05/2012 at 09:59AM

19
#173 - Tyler Breisacher / @tbreisacher

08/25/2012 at 06:10AM

19
#174 - Arto Vuori / @dhpe

08/31/2012 at 07:43PM

19
#175 - Karun Ramakrishnan / @the_karun

04/08/2013 at 05:58PM

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

07/15/2013 at 10:28AM

19
#177 - Endir / @Endir2

04/18/2014 at 01:43PM

19
#178 - Brandon / @Brandon10678836

08/31/2022 at 02:02PM

19
#179 - steve / @steve35773420

03/04/2023 at 02:15PM

20
#180 - Mac Heller-Ogden / @twosoul

05/02/2012 at 12:52AM