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 56e36925d64dfc4d28000001

Inner hyphens

Yet another hyphen challenge. Adding 5 hyphens to a file shouldn't be too hard.

Start file
abcdef
End file
a-b-c-d-e-f

View Diff

Why are you checking the diff? There's never anything good here.

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 75 remaining solutions by signing in and submitting your own entry
#76 Jonathan / @jmcphers - Score: 14 - 08/16/16 @ 19:56
:s/./&-/g<CR>$xZZ

0 comments


Created by: @udioica

76 active golfers, 122 entries

Leaderboard (lowest score wins):
12
#31 - Walker Boh / @walker_boh

03/14/2016 at 09:21AM

12
#32 - Dimitar Dimitrov / @kurkale6ka

03/14/2016 at 10:48AM

12
#33 - Yahyalexandre33 / @yahyalexandre33

03/15/2016 at 06:21AM

12
#34 - lucas / @rept357

03/15/2016 at 03:01PM

12
#35 - David Jr / @DmcdonnelJr

03/15/2016 at 10:12PM

12
#36 - PAUL RUSSO / @paulie_ru

03/16/2016 at 01:12PM

12
#37 - Rubén Chavarría T. / @rchavarriat

03/17/2016 at 08:27AM

12
#38 - Filippos K. / @filkaris

03/18/2016 at 03:59PM

12
#39 - Jonathan Taylor / @Jonyonson

03/20/2016 at 04:46AM

12
#40 - Jason Choi / @joyous_jason

03/22/2016 at 11:08AM

12
#41 - Robert Mosher / @rcmosher

03/24/2016 at 04:57PM

12
#42 - Philiphone / @Philiphone

03/26/2016 at 02:15PM

12
#43 - Martin / @delyat

03/30/2016 at 02:27PM

12
#44 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 04:36PM

12
#45 - lilach adir / @leelaRed

04/03/2016 at 11:27AM

12
#46 - Chenut Ludovic / @7Brwa7

04/07/2016 at 11:30AM

12
#47 - E Both / @enboth

04/17/2016 at 05:18PM

12
#48 - Jake Griffin / @J4K0_G

04/22/2016 at 11:37PM

12
#49 - tPenguinLTG / @tpenguinltg

04/27/2016 at 09:21PM

12
#50 - Simon Pugnet / @polaris64

04/27/2016 at 10:12PM

12
#51 - Mateusz Dereniowski / @mderenio

05/04/2016 at 09:08PM

12
#52 - John Goes / @johnwgoes

05/09/2016 at 03:23PM

12
#53 - Ram Tamtam / @ramtamtamtam

07/01/2016 at 09:21AM

12
#54 - Benedikt Breinbauer / @benebun

07/24/2016 at 06:15PM

12
#55 - Sam Hammer / @samhammer325

07/30/2016 at 09:35PM

12
#56 - Jeremiah Goyette / @JeremiahGoyette

08/03/2016 at 06:41AM

12
#57 - Stanislav / @prstad

08/24/2016 at 02:01PM

12
#58 - Will / @obiwan__k3n00bi

09/03/2016 at 06:10AM

12
#59 - Kyouma / @kyoumaJohn

10/14/2016 at 08:37PM

12
#60 - Christian Rondeau / @c_rondeau

10/18/2016 at 02:06AM