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):
16
#91 - William Dunand / @wdunand

05/11/2012 at 01:48AM

16
#92 - Greg Sabo / @gregsabo

06/21/2012 at 04:42AM

16
#93 - Nipunn Koorapati / @nipunn1313

07/21/2012 at 08:51AM

16
#94 -  Ikhsan Maulana / @ixandidu

08/18/2012 at 03:40PM

16
#95 - retired account / @retired10072015

08/21/2012 at 08:35AM

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

10/09/2012 at 08:45PM

16
#97 - Matt Boehm / @mattboehm

11/08/2012 at 02:58AM

16
#98 - Rey Wright / @reywright

11/29/2012 at 12:47AM

16
#99 - curist / @curist

07/09/2013 at 08:28AM

16
#100 - Bart of Denver / @bartofdenver

08/13/2013 at 03:20AM

16
#101 - John Papanastasiou / @JohnPapps

08/27/2013 at 12:49PM

16
#102 - Zach Kemp / @zvksf

12/24/2013 at 05:27AM

16
#103 - Caek / @Caek_

07/29/2014 at 11:50AM

16
#104 - LC / @leeren

08/10/2014 at 09:20PM

16
#105 - ltn614 / @ltn614

09/27/2015 at 06:26AM

16
#106 - Will / @obiwan__k3n00bi

08/25/2016 at 02:37AM

16
#107 - DHM / @DHM29978992

05/03/2018 at 01:54AM

16
#108 - Leonard Bereska / @LeonardBereska

02/22/2023 at 08:44PM

16
#109 - Remus Dalrymple / @bornintheflames

12/28/2023 at 08:32PM

17
#110 - h_east (トロッコ6個) / @h_east

05/02/2012 at 02:51AM

17
#111 - Henri Wiechers / @hwiechers

05/02/2012 at 04:34AM

17
#112 - vall / @provall1

05/04/2012 at 11:28AM

17
#113 - Kerson Hsiao / @KersonHsiao

05/05/2012 at 03:09PM

17
#114 - Mattiassich Ákos / @mattiassicha

05/06/2012 at 05:15AM

17
#115 - Jez Cope / @jezcope

05/06/2012 at 07:28PM

17
#116 - Fabien Pelletier / @FabPelletier

05/07/2012 at 01:25AM

17
#117 - Gavin Rogers / @KC9KVQ

05/07/2012 at 08:09PM

17
#118 - Alex Arnell / @alexarnell

05/07/2012 at 10:54PM

17
#119 - Dave C / @dmlc133

05/10/2012 at 01:08PM

17
#120 - Julio Silva / @9jb

05/14/2012 at 08:27PM