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 592e0f555b60ba0009000001

Stairstep digits

Remove the evens. Double the odds.

Start file
123456789
End file
1133557799

View Diff

A trick a golfer should know, but I don't think
many of you do. This challenge will fix that.

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 102 remaining solutions by signing in and submitting your own entry
#103 Gurukandhamoorthi / @Gurukandhamoor1 - Score: 24 - 07/10/17 @ 09:30
:s/[2468]//g|s/./&&/g<CR>ZZ

0 comments


Created by: @udioica

103 active golfers, 218 entries

Leaderboard (lowest score wins):
9
#31 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 02:01PM

9
#32 - Luke Parsons / @lukeparsons

12/29/2017 at 02:35PM

9
#33 - ParasamGateZero / @ParasamGateZero

02/18/2018 at 07:20PM

9
#34 - Dominic Z / @thammaaa

02/18/2018 at 09:35PM

9
#35 - DHM / @DHM29978992

04/28/2018 at 03:33PM

9
#36 - Daniël De Koker / @daniel_koker

07/11/2018 at 07:26AM

9
#37 - name / @name65894813

11/28/2018 at 04:18PM

9
#38 - Dax / @zacoxi

12/05/2018 at 05:53AM

9
#39 - alekfed / @alek_fed

04/16/2019 at 01:00PM

9
#40 - majo senf / @majo_senf

06/24/2019 at 04:42PM

13
#41 - James / @Dronak

05/31/2017 at 01:04AM

13
#42 - Anoop Kumar / @anooplive

05/31/2017 at 02:58AM

13
#43 - Andrey / @andreyrmg

05/31/2017 at 04:40AM

13
#44 - Christian Abbott / @etopixi

05/31/2017 at 05:29AM

13
#45 - Cristian / @cris_perez_b

05/31/2017 at 07:07AM

13
#46 - Tallak Tveide / @tallakt

05/31/2017 at 08:14AM

13
#47 - we’re going to need a bigger bot / @assaflavie

05/31/2017 at 09:16AM

13
#48 - Joe Reddington / @joereddington

05/31/2017 at 11:13AM

13
#49 - Miki Tebeka / @tebeka

05/31/2017 at 12:25PM

13
#50 - tPenguinLTG / @tpenguinltg

05/31/2017 at 12:46PM

13
#51 - Matt Rasmus / @_mattrasmus

05/31/2017 at 04:13PM

13
#52 - Lukas Galke / @_lpag

05/31/2017 at 10:57PM

13
#53 - Melvin Cheung / @MelvinCheung

06/01/2017 at 05:38AM

13
#54 - Vaughn Cato / @vaughncato

06/01/2017 at 01:50PM

13
#55 - Jye Sawtell-Rickson / @jsawtellrickson

06/01/2017 at 02:47PM

13
#56 - Emmanuel Denloye-Ito / @EmmanuelDenloye

06/01/2017 at 08:27PM

13
#57 - Jan Bundesmann / @janbundesmann

06/02/2017 at 12:19PM

13
#58 - Shriharsh / @ShriharshMishra

06/02/2017 at 03:35PM

13
#59 - kkh / @kkhdlut

06/03/2017 at 06:59AM

13
#60 - Rowan Tree / @RowanTr88447528

06/03/2017 at 12:48PM