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 54 remaining solutions by signing in and submitting your own entry
#55 Stanislav / prstad - Score: 12 - 08/24/16 @ 14:01
qqa-<Esc>lq4@qZZ

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


#61 Gurukandhamoorthi / Gurukandhamoor1 - Score: 12 - 08/01/17 @ 15:18
qqa-<Esc>lq4@qZZ

0 comments


#62 Saul Hardman / saulhardman - Score: 12 - 08/14/17 @ 07:58
qqa-<Esc>lq4@qZZ

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


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

0 comments


Created by: udioica

68 active golfers, 110 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

11
#8 - Turkey Man / lvturkeyman

11/28/2017 at 05:04PM

11
#9 - DHM / DHM29978992

05/27/2018 at 02:16AM

12
#10 - coryknapp / coryknapp

03/12/2016 at 01:25AM

12
#11 - James / Dronak

03/12/2016 at 01:41AM

12
#12 - Tim Chase / gumnos

03/12/2016 at 01:44AM

12
#13 - Jon Krause / jkrause314

03/12/2016 at 02:42AM

12
#14 - Assaf Lavie / AssafLavie

03/12/2016 at 05:35AM

12
#15 - Dmitriy Olshevskiy / olshevskiy_dv

03/12/2016 at 06:18AM

12
#16 - Smylers / Smylers2

03/12/2016 at 09:36AM

12
#17 - glepha / glepha_vim

03/12/2016 at 10:02AM

12
#18 - Andreas Carben / meiner_eins

03/12/2016 at 10:21AM

12
#19 - M S / b1790037

03/12/2016 at 01:13PM

12
#20 - Petro Тrouq / zulolosi

03/12/2016 at 05:36PM

12
#21 - Lifepillar / lifepillar

03/12/2016 at 10:28PM

12
#22 - Trey Thomas / treythomas123

03/12/2016 at 11:46PM

12
#23 - Wistan Chou / wisty97

03/13/2016 at 05:20AM

12
#24 - Anoop Kumar / anooplive

03/13/2016 at 06:23AM

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

03/13/2016 at 12:18PM

12
#26 - Artur Taranchiev / ewokru

03/13/2016 at 12:26PM

12
#27 - Kai Yuan / kentyuan

03/13/2016 at 08:08PM

12
#28 - Mister Knister / vimgolf_ctrl_x

03/14/2016 at 06:28AM

12
#29 - Walker Boh / walker_boh

03/14/2016 at 09:21AM

12
#30 - Dimitar Dimitrov / kurkale6ka

03/14/2016 at 10:48AM