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):
14
#31 - chikatoike / @chikatoike

06/26/2012 at 03:51PM

14
#32 - John Dahlström / @dahlstromjohn

07/01/2012 at 09:49PM

14
#33 - Raúl Jara / @rauljara

07/06/2012 at 08:48PM

14
#34 - Wei Dai / @clvv42

07/12/2012 at 08:48PM

14
#35 - Heath Matlock / @heathmatlock

07/18/2012 at 12:42PM

14
#36 - Joseph J. Piché / @jjpiche

08/25/2012 at 02:42AM

14
#37 - Conner McDaniel / @connermcd

09/18/2012 at 04:39AM

14
#38 - Vim rocks / @vimrocks

10/09/2012 at 01:11PM

14
#39 - Drew Neil / @nelstrom

11/27/2012 at 12:21AM

14
#40 - Marcin Szamotulski / @me_coot

12/05/2012 at 08:18PM

14
#41 - Yann Moisan / @YannMoisan

01/12/2013 at 07:00PM

14
#42 - Koko / @Koko72525913

01/17/2013 at 04:19PM

14
#43 - Trevor Powell / @DoomedBunnies

03/20/2013 at 11:14PM

14
#44 - Marco Hinz / @_mhinz_

05/22/2013 at 10:19PM

14
#45 - Petro Тrouq / @zulolosi

07/04/2013 at 07:36PM

14
#46 - Bradd Szonye / @bszonye

07/14/2013 at 06:35AM

14
#47 - Steve Tjoa / @stevetjoa

07/29/2013 at 10:46PM

14
#48 - Raphaël Saunier / @RaphaelSaunier

08/27/2013 at 10:59PM

14
#49 - Casey Dwyer / @caseydwyer

11/04/2013 at 09:42PM

14
#50 - Andrew O'Neill / @AndroidOatmeal

12/18/2013 at 06:11PM

14
#51 - pikaren / @REALpikaren

01/06/2014 at 04:01PM

14
#52 - Joonas Pihlajamaa / @jokkebk

02/24/2014 at 03:20PM

14
#53 - ZorgroZ / @ZorgroZ

04/12/2014 at 07:47PM

14
#54 - John Braxler / @braxler

04/15/2014 at 07:59PM

14
#55 - Ram Tamtam / @ramtamtamtam

07/28/2014 at 10:34AM

14
#56 - pftb12345 / @pftb12345

04/13/2015 at 04:49AM

14
#57 - Jon Krause / @jkrause314

02/08/2016 at 09:54PM

14
#58 - Daniel / @Daniel00288663

04/04/2017 at 07:11AM

14
#59 - Turkey Man / @lvturkeyman

11/26/2017 at 04:29PM

14
#60 - BarbaJol / @drpproteus

01/10/2018 at 05:42PM