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 56421fb1603ec626ec000003

Angular naming conventions

In angular, a directive name follows the camelCase convention. When the directive is used in an HTML template, the words are instead separated by a dash. Go from to the other the fastest!

Start file
Before I don't care greatDanesAreMyFriends After I don't care either
End file
Before I don't care great-danes-are-my-friends After I don't care either

View Diff

1c1
< Before I don't care greatDanesAreMyFriends After I don't care either
---
> Before I don't care great-danes-are-my-friends After I don't care either

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 104 remaining solutions by signing in and submitting your own entry
#105 William Ott / @oddalot - Score: 41 - 11/19/15 @ 05:36
:%s/\(\S)<BS>\)\([A-Z}<BS>]\)/\1-\L\2/g<CR>:q<CR>:wq<CR>

0 comments


#106 lonerr / @LonerrOleg - Score: 41 - 11/22/15 @ 00:48
WWWW<Right><Right><Right><Right><Right>qq~<Left>i-<Esc>q<Right><Right><Right><Right><Right><Right>@q<Right><Right><Right><Right><Right><Left>@q<Right><Right><Right>@q:x<CR>

0 comments


Created by: @raxcoi

106 active golfers, 277 entries

Leaderboard (lowest score wins):
24
#91 - Jakob Schöttl / @jschoettl

12/31/2015 at 08:07AM

24
#92 - Oliver Christ / @0liverChrist

07/12/2016 at 11:01PM

24
#93 - Jurica / @Jurica34581259

12/05/2018 at 02:54AM

25
#94 - VimGolfUser / @UserVim

11/11/2015 at 12:11AM

25
#95 - Phil Ting / @philipjting

11/15/2015 at 05:58AM

25
#96 - かりうむ / @ka1l

11/17/2015 at 06:46AM

26
#97 - luffy / @raxcoi

11/10/2015 at 04:49PM

26
#98 - Aurélien Lair / @aurelien_lair

11/10/2015 at 10:26PM

26
#99 - Dave Powell / @d_pow_pow

11/13/2015 at 01:40PM

26
#100 - Mendel Simon / @agentms11

12/07/2015 at 09:58PM

31
#101 - jdupont655 / @jdupont655

09/07/2016 at 01:37PM

32
#102 - Vimfiz / @vimfiz

08/09/2019 at 12:54AM

34
#103 - Gurukandhamoorthi / @Gurukandhamoor1

07/13/2017 at 12:21PM

34
#104 - majo senf / @majo_senf

06/25/2019 at 01:22PM

41
#105 - William Ott / @oddalot

11/19/2015 at 05:36AM

41
#106 - lonerr / @LonerrOleg

11/22/2015 at 12:48AM