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):
14
#61 - Mihai / @mihaicristiant

03/18/2019 at 08:37AM

14
#62 - vimgolfer / @vimgolfer7

10/12/2019 at 03:30AM

14
#63 - Miłosz Łakomy / @foobar01123

04/28/2020 at 07:29AM

14
#64 - Arya Kumar / @SusSquirrel

06/10/2021 at 04:44PM

15
#65 - Aaron Lake / @aaronmlake

05/02/2012 at 01:23AM

15
#66 - Tibor Claassen / @codebeige

05/02/2012 at 08:36PM

15
#67 - Nolen Royalty / @NolenRoyalty

05/06/2012 at 10:51PM

15
#68 - Boyance / @Boyance_nl

05/09/2012 at 09:26PM

15
#69 - Gavin Hughes / @gavinhughes

05/13/2012 at 08:09AM

15
#70 - Sean Griffin / @sgrif

08/14/2012 at 02:04AM

15
#71 - Joe Nelson / @begriffs

09/04/2012 at 04:17AM

15
#72 - Tom Cammann / @tea_sea

10/10/2012 at 12:21AM

15
#73 - isayoldchap / @isayoldchap

09/12/2013 at 12:05AM

15
#74 - US Dollar Price / @USDollarPrice

11/06/2013 at 07:33AM

15
#75 - Ben Hill / @KaizenSoze70

06/13/2016 at 12:06PM

15
#76 - Loser Face / @heypetewhats

02/16/2017 at 07:18PM

15
#77 - Lory / @Lory46845742

12/17/2019 at 10:34AM

16
#78 - Jonathan Lozinski / @jlozinski

05/02/2012 at 06:12AM

16
#79 - 無ん垢の叫び / @john_ababa

05/06/2012 at 04:29AM

16
#80 - VimGolfDzNrSQleot / @VimGolfDzNrSQle

05/10/2012 at 09:25PM

16
#81 - William Dunand / @wdunand

05/11/2012 at 01:48AM

16
#82 - Greg Sabo / @gregsabo

06/21/2012 at 04:42AM

16
#83 - Nipunn Koorapati / @nipunn1313

07/21/2012 at 08:51AM

16
#84 -  Ikhsan Maulana / @ixandidu

08/18/2012 at 03:40PM

16
#85 - retired account / @retired10072015

08/21/2012 at 08:35AM

16
#86 - Édouard M'tou / @DouardM

10/09/2012 at 08:45PM

16
#87 - Matt Boehm / @mattboehm

11/08/2012 at 02:58AM

16
#88 - Rey Wright / @reywright

11/29/2012 at 12:47AM

16
#89 - curist / @curist

07/09/2013 at 08:28AM

16
#90 - Bart of Denver / @bartofdenver

08/13/2013 at 03:20AM