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

0 comments


Created by: @udioica

71 active golfers, 114 entries

Leaderboard (lowest score wins):
12
#61 - Michał Dytko / @DytkoM

12/28/2016 at 01:59PM

12
#62 - Gurukandhamoorthi / @Gurukandhamoor1

08/01/2017 at 03:18PM

12
#63 - Saul Hardman / @saulhardman

08/14/2017 at 07:58AM

12
#64 - Mihai / @mihaicristiant

04/10/2019 at 08:56AM

12
#65 - Josefina Alconada / @jochiAlconada

10/06/2019 at 10:25AM

13
#66 - Matt / @mcr05

03/12/2016 at 11:08AM

13
#67 - Janko Jerinic / @JankoJerinic

03/26/2016 at 08:20AM

13
#68 - aisapatino / @aisapatino

03/29/2016 at 11:29PM

13
#69 - Feras / @faldah

05/01/2016 at 02:16PM

13
#70 - vic © / @2r2w

05/20/2016 at 03:21PM

14
#71 - Jonathan / @jmcphers

08/16/2016 at 07:56PM