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 51 remaining solutions by signing in and submitting your own entry
#52 Jeremiah Goyette / JeremiahGoyette - Score: 12 - 08/03/16 @ 06:41
qqa-<Esc>lq4@qZZ

0 comments

#53 Stanislav / prstad - Score: 12 - 08/24/16 @ 14:01
qqa-<Esc>lq4@qZZ

0 comments

#54 Will / w_labranche - Score: 12 - 09/03/16 @ 06:10
qqa-<Esc>wq4@qZZ

0 comments

#55 Kyouma / kyoumaJohn - Score: 12 - 10/14/16 @ 20:37
qqa-<Esc>lq4@qZZ

0 comments

#56 Christian Rondeau / c_rondeau - Score: 12 - 10/18/16 @ 02:06
qqa-<Esc>lq4@qZZ

0 comments

#57 Bill Ruddock / biinari - Score: 12 - 10/25/16 @ 14:12
qqa-<Esc>lq4@qZZ

0 comments

#58 Michał Dytko / DytkoM - Score: 12 - 12/28/16 @ 13:59
qqa-<Esc>lq4@qZZ

0 comments

#59 Matthieu Crapet / mcr05 - Score: 13 - 03/12/16 @ 11:08
:s/./-&/g<CR>xZZ

0 comments

#60 Janko Jerinic / JankoJerinic - Score: 13 - 03/26/16 @ 08:20
a-<Esc>w.w.w.w.ZZ

0 comments

#61 aisapatino / aisapatino - Score: 13 - 03/29/16 @ 23:29
a-<Esc>w.w.w.w.ZZ

0 comments

#62 Feras / faldah - Score: 13 - 05/01/16 @ 14:16
qqli-<Esc>lq5@qZZ

0 comments

#63 vic © / 2r2w - Score: 13 - 05/20/16 @ 15:21
a-<Esc>qqw.q3@qZZ

0 comments

#64 Jonathan / jmcphers - Score: 14 - 08/16/16 @ 19:56
:s/./&-/g<CR>$xZZ

0 comments

Created by: udioica

64 active golfers, 99 entries

Leaderboard (lowest score wins):
11
#1 - Urtica dioica / udioica

03/13/2016 at 01:08AM

11
#2 - Hao Chen / Chen_Hao

03/13/2016 at 04:08PM

11
#3 - John Braxler / braxler

03/14/2016 at 02:45PM

11
#4 - Corsin Pfister / corsin_pfister

03/24/2016 at 07:56PM

11
#5 - Alan Turing / alantrng

11/14/2016 at 07:12AM

11
#6 - Saki Gw / Sakigw

11/25/2016 at 09:34PM

11
#7 - Jeff Kelly / cheibriados

06/03/2017 at 06:48AM

12
#8 - coryknapp / coryknapp

03/12/2016 at 01:25AM

12
#9 - James / Dronak

03/12/2016 at 01:41AM

12
#10 - Tim Chase / gumnos

03/12/2016 at 01:44AM

12
#11 - Jon Krause / jkrause314

03/12/2016 at 02:42AM

12
#12 - Assaf Lavie / AssafLavie

03/12/2016 at 05:35AM

12
#13 - Dmitriy Olshevskiy / olshevskiy_dv

03/12/2016 at 06:18AM

12
#14 - Smylers / Smylers2

03/12/2016 at 09:36AM

12
#15 - glepha / glepha_vim

03/12/2016 at 10:02AM

12
#16 - Andreas Carben / meiner_eins

03/12/2016 at 10:21AM

12
#17 - M S / b1790037

03/12/2016 at 01:13PM

12
#18 - Petro Тrouq / zulolosi

03/12/2016 at 05:36PM

12
#19 - Lifepillar / lifepillar

03/12/2016 at 10:28PM

12
#20 - Trey Thomas / treythomas123

03/12/2016 at 11:46PM

12
#21 - Wistan Chou / wisty97

03/13/2016 at 05:20AM

12
#22 - Anoop Kumar / anooplive

03/13/2016 at 06:23AM

12
#23 - Carlos A Henríquez Q / lagunex

03/13/2016 at 12:18PM

12
#24 - Artur Taranchiev / ewokru

03/13/2016 at 12:26PM

12
#25 - Kai Yuan / kentyuan

03/13/2016 at 08:08PM

12
#26 - Mister Knister / vimgolf_ctrl_x

03/14/2016 at 06:28AM

12
#27 - Walker Boh / walker_boh

03/14/2016 at 09:21AM

12
#28 - Dimitar Dimitrov / kurkale6ka

03/14/2016 at 10:48AM

12
#29 - Yahyalexandre33 / yahyalexandre33

03/15/2016 at 06:21AM

12
#30 - lucas / rept357

03/15/2016 at 03:01PM

12
#31 - David Jr / DmcdonnelJr

03/15/2016 at 10:12PM

12
#32 - PAUL RUSSO / paulie_ru

03/16/2016 at 01:12PM

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

03/17/2016 at 08:27AM

12
#34 - Filippos K. / filkaris

03/18/2016 at 03:59PM

12
#35 - Jonathan Taylor / Jonyonson

03/20/2016 at 04:46AM

12
#36 - Jason Choi / joyous_jason

03/22/2016 at 11:08AM

12
#37 - Robert Mosher / rcmosher

03/24/2016 at 04:57PM

12
#38 - Philiphone / Philiphone

03/26/2016 at 02:15PM

12
#39 - Martin / delyat

03/30/2016 at 02:27PM

12
#40 - Dinesh Bhosale / MrDineshBhosale

03/30/2016 at 04:36PM

12
#41 - lilach adir / leelaRed

04/03/2016 at 11:27AM

12
#42 - Chenut Ludovic / 7Brwa7

04/07/2016 at 11:30AM

12
#43 - E Both / enboth

04/17/2016 at 05:18PM

12
#44 - Jake Griffin / J4K0_G

04/22/2016 at 11:37PM

12
#45 - tPenguinLTG / tpenguinltg

04/27/2016 at 09:21PM

12
#46 - Simon Pugnet / polaris64

04/27/2016 at 10:12PM

12
#47 - Mateusz Dereniowski / mderenio

05/04/2016 at 09:08PM

12
#48 - John Goes / johnwgoes

05/09/2016 at 03:23PM

12
#49 - Ram Tamtam / ramtamtamtam

07/01/2016 at 09:21AM

12
#50 - Benedikt Breinbauer / benebun

07/24/2016 at 06:15PM

12
#51 - Sam Hammer / samhammer325

07/30/2016 at 09:35PM

12
#52 - Jeremiah Goyette / JeremiahGoyette

08/03/2016 at 06:41AM

12
#53 - Stanislav / prstad

08/24/2016 at 02:01PM

12
#54 - Will / w_labranche

09/03/2016 at 06:10AM

12
#55 - Kyouma / kyoumaJohn

10/14/2016 at 08:37PM

12
#56 - Christian Rondeau / c_rondeau

10/18/2016 at 02:06AM

12
#57 - Bill Ruddock / biinari

10/25/2016 at 02:12PM

12
#58 - Michał Dytko / DytkoM

12/28/2016 at 01:59PM

13
#59 - Matthieu Crapet / mcr05

03/12/2016 at 11:08AM

13
#60 - Janko Jerinic / JankoJerinic

03/26/2016 at 08:20AM

13
#61 - aisapatino / aisapatino

03/29/2016 at 11:29PM

13
#62 - Feras / faldah

05/01/2016 at 02:16PM

13
#63 - vic © / 2r2w

05/20/2016 at 03:21PM

14
#64 - Jonathan / jmcphers

08/16/2016 at 07:56PM