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):
13
#91 - Gitsnik / @dracyrys

05/04/2019 at 01:46PM

13
#92 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 04:17PM

14
#93 - Ayush Sachdeva / @ayush000

06/05/2017 at 04:27PM

14
#94 - Will Gunther / @WillGunther

06/11/2017 at 06:47PM

14
#95 - Emmanuel Herrero / @hairarrow

06/14/2017 at 07:31PM

14
#96 - grigouille / @grigouille2

07/05/2017 at 08:28PM

14
#97 - Daniel / @0x9ABC

08/20/2017 at 02:05PM

14
#98 - Geoff / @RealGeoffErwin

10/09/2017 at 06:55PM

15
#99 - Jurica / @Jurica34581259

11/16/2018 at 06:01PM

17
#100 - Rodrigo Dorantes G. / @ruydg

06/06/2017 at 05:35PM

22
#101 - SamuelLee / @SamuelLee90

06/01/2017 at 06:14PM

23
#102 - Ilya Grigorik / @igrigorik

06/11/2017 at 04:50PM

24
#103 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 09:30AM