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):
20
#181 - Ricardo Mendes / @locks

05/02/2012 at 01:07AM

20
#182 - Will Furnass / @WillFurnass

05/16/2012 at 02:12PM

20
#183 - Viswanath Sivakumar / @viswanathgs

08/30/2012 at 09:05PM

20
#184 - RockerZZY / @rocker_zzy

06/06/2020 at 04:33AM

21
#185 - JustGage / @JustGage

09/03/2012 at 07:24AM

21
#186 - NuM / @NuM314

10/05/2013 at 11:32PM

21
#187 - Alessandro Lisander / @wuiimu

01/06/2014 at 09:38AM

22
#188 - J Paul Daigle / @philosodad

05/23/2012 at 07:06PM

22
#189 - Alex Bartol / @alexbartol

05/06/2015 at 06:30AM

23
#190 - shahanavaz m / @shahanavazm

03/18/2024 at 08:19PM

24
#191 - Jurica / @Jurica34581259

12/13/2018 at 04:58PM

25
#192 - Viktor Jackson / @AntiStalinista

05/05/2012 at 03:16AM

27
#193 - bsjd / @bsjd

05/07/2012 at 05:31PM

34
#194 - Thijs Brobbel / @tiesmaster

05/29/2012 at 12:59PM

35
#195 - Brent Woo / @BrentPWoo

10/16/2018 at 08:07PM

37
#196 - Gurukandhamoorthi / @Gurukandhamoor1

07/30/2017 at 03:12PM

40
#197 - mindgitrwx / @mindgitrwx

08/25/2020 at 02:25PM

77
#198 - Noel Alejandro / @noelrock333

06/23/2012 at 12:55AM

77
#199 - nickGPT / @nickandbro

08/28/2024 at 08:57PM