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):
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

11
#10 - vimgolfer / @vimgolfer7

10/17/2019 at 01:45PM

11
#11 - 김범준 / @kmbmjn

05/11/2021 at 02:09AM

11
#12 - Janzen / @__Coos

10/02/2022 at 01:41PM

11
#13 - Peppa Pig / @PeppaPi95550250

07/21/2024 at 09:21AM

11
#14 - nickGPT / @nickandbro

08/28/2024 at 03:32AM

12
#15 - Cory Knapp / @coryknapp

03/12/2016 at 01:25AM

12
#16 - James / @Dronak

03/12/2016 at 01:41AM

12
#17 - Tim Chase / @gumnos

03/12/2016 at 01:44AM

12
#18 - Jon Krause / @jkrause314

03/12/2016 at 02:42AM

12
#19 - we’re going to need a bigger bot / @assaflavie

03/12/2016 at 05:35AM

12
#20 - Dmitriy Olshevskiy / @olshevskiy_dv

03/12/2016 at 06:18AM

12
#21 - Smylers / @Smylers2

03/12/2016 at 09:36AM

12
#22 - glepha / @glepha_vim

03/12/2016 at 10:02AM

12
#23 - Andreas Carben / @meiner_eins

03/12/2016 at 10:21AM

12
#24 - M S / @b1790037

03/12/2016 at 01:13PM

12
#25 - Petro Тrouq / @zulolosi

03/12/2016 at 05:36PM

12
#26 - Lifepillar / @lifepillar

03/12/2016 at 10:28PM

12
#27 - Trey Thomas / @treythomas123

03/12/2016 at 11:46PM

12
#28 - Wistan Chou / @wisty97

03/13/2016 at 05:20AM

12
#29 - Anoop Kumar / @anooplive

03/13/2016 at 06:23AM

12
#30 - Carlos A Henríquez Q / @lagunex

03/13/2016 at 12:18PM