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 196 remaining solutions by signing in and submitting your own entry
#197 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


#198 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

198 active golfers, 499 entries

Leaderboard (lowest score wins):
14
#1 - Tim Chase / @gumnos

05/02/2012 at 01:08AM

14
#2 - Marcin Kulik / @sickill

05/02/2012 at 08:05AM

14
#3 - Kent Sibilev / @datanoise

05/02/2012 at 10:02PM

14
#4 - Daumantas / @dbaltrus

05/03/2012 at 12:37AM

14
#5 - Federico Galassi / @federicogalassi

05/03/2012 at 01:46AM

14
#6 - Sebastian Kusnier / @skusnier

05/03/2012 at 07:54PM

14
#7 - Martin Aumueller / @aumuell

05/04/2012 at 08:00PM

14
#8 - Rod Knowlton / @codelahoma

05/05/2012 at 07:53PM

14
#9 - Jiří Chára / @JiriChara

05/06/2012 at 12:40PM

14
#10 - kurban / @kurban_mall

05/06/2012 at 04:01PM

14
#11 - Son of Bongo / @bpcode

05/07/2012 at 04:25PM

14
#12 - CoolWebTeacher / @coolwebteacher

05/07/2012 at 11:18PM

14
#13 - Sergey / @sav86

05/09/2012 at 02:15AM

14
#14 - mnx / @mnxx

05/10/2012 at 08:40PM

14
#15 - Neil / @spameldoon

05/12/2012 at 01:56AM

14
#16 - Evgeny Persienko / @zzazab

05/12/2012 at 05:34AM

14
#17 - Christian Gaida / @chgaida

05/12/2012 at 04:44PM

14
#18 - Urtica dioica / @udioica

05/13/2012 at 03:16PM

14
#19 - Sunny Klair / @0xSunhay

05/13/2012 at 10:54PM

14
#20 - CyLiu / @CyLiu

05/15/2012 at 02:03PM

14
#21 - Mikael Engström / @mikaelengstrom

05/17/2012 at 09:29AM

14
#22 - Forrest L Norvell / @othiym23

05/18/2012 at 06:39AM

14
#23 - Benjamin Hitov / @benhitov

05/19/2012 at 04:12AM

14
#24 - Vasil Sakarov / @vsakarov

05/21/2012 at 05:10PM

14
#25 - John Whitley / @johnwhitley

05/27/2012 at 06:10PM

14
#26 - Justin Love / @wondible

05/29/2012 at 06:39PM

14
#27 - quintin / @quintinjeannoel

05/30/2012 at 04:57PM

14
#28 - Benoit Mortgat / @Benoit_Mortgat

06/05/2012 at 06:39PM

14
#29 - Benson Kim / @BensonRLA

06/06/2012 at 11:35AM

14
#30 - Paul Gessler / @pdgessler

06/07/2012 at 03:54AM