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 81 remaining solutions by signing in and submitting your own entry
#82 matthewayers / @matthewayers - Score: 21 - 08/19/24 @ 00:36
kli-<Esc>ll.ll.ll.ll.:wq<CR>

0 comments


Created by: @udioica

82 active golfers, 136 entries

Leaderboard (lowest score wins):
12
#31 - Artur Taranchiev / @ewokru

03/13/2016 at 12:26PM

12
#32 - Kai Yuan / @kentyuan

03/13/2016 at 08:08PM

12
#33 - Mister Knister / @vimgolf_ctrl_x

03/14/2016 at 06:28AM

12
#34 - Walker Boh / @walker_boh

03/14/2016 at 09:21AM

12
#35 - Dimitar Dimitrov / @kurkale6ka

03/14/2016 at 10:48AM

12
#36 - Yahyalexandre33 / @yahyalexandre33

03/15/2016 at 06:21AM

12
#37 - lucas / @rept357

03/15/2016 at 03:01PM

12
#38 - David Jr / @DmcdonnelJr

03/15/2016 at 10:12PM

12
#39 - PAUL RUSSO / @paulie_ru

03/16/2016 at 01:12PM

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

03/17/2016 at 08:27AM

12
#41 - Filippos K. / @filkaris

03/18/2016 at 03:59PM

12
#42 - Jonathan Taylor / @Jonyonson

03/20/2016 at 04:46AM

12
#43 - Jason Choi / @joyous_jason

03/22/2016 at 11:08AM

12
#44 - Robert Mosher / @rcmosher

03/24/2016 at 04:57PM

12
#45 - Philiphone / @Philiphone

03/26/2016 at 02:15PM

12
#46 - Martin / @delyat

03/30/2016 at 02:27PM

12
#47 - Dinesh Bhosale / @MrDineshBhosale

03/30/2016 at 04:36PM

12
#48 - lilach adir / @leelaRed

04/03/2016 at 11:27AM

12
#49 - Chenut Ludovic / @7Brwa7

04/07/2016 at 11:30AM

12
#50 - E Both / @enboth

04/17/2016 at 05:18PM

12
#51 - Jake Griffin / @J4K0_G

04/22/2016 at 11:37PM

12
#52 - tPenguinLTG / @tpenguinltg

04/27/2016 at 09:21PM

12
#53 - Simon Pugnet / @polaris64

04/27/2016 at 10:12PM

12
#54 - Mateusz Dereniowski / @mderenio

05/04/2016 at 09:08PM

12
#55 - John Goes / @johnwgoes

05/09/2016 at 03:23PM

12
#56 - Ram Tamtam / @ramtamtamtam

07/01/2016 at 09:21AM

12
#57 - Benedikt Breinbauer / @benebun

07/24/2016 at 06:15PM

12
#58 - Sam Hammer / @samhammer325

07/30/2016 at 09:35PM

12
#59 - Jeremiah Goyette / @JeremiahGoyette

08/03/2016 at 06:41AM

12
#60 - Stanislav / @prstad

08/24/2016 at 02:01PM