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 105 remaining solutions by signing in and submitting your own entry
#106 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


#107 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

107 active golfers, 278 entries

Leaderboard (lowest score wins):
18
#31 - Michael Buckley / @apolatg

02/13/2016 at 08:19PM

18
#32 - John Smith / @literacyisgood

02/18/2016 at 12:34AM

18
#33 - ben kavanagh / @bkava

02/23/2016 at 02:44AM

18
#34 - Thijs van den Anker / @thijsvdanker

02/23/2016 at 09:20PM

18
#35 - Dinesh Bhosale / @MrDineshBhosale

04/01/2016 at 04:03PM

18
#36 - trx / @trxdbg

10/26/2016 at 01:14PM

18
#37 - Josh Callender / @Saponifi3d

10/28/2016 at 05:21AM

18
#38 - Turkey Man / @lvturkeyman

11/23/2017 at 05:44PM

18
#39 - DHM / @DHM29978992

04/30/2018 at 03:55PM

18
#40 - Daniël De Koker / @daniel_koker

07/17/2018 at 08:00AM

18
#41 - Mihai / @mihaicristiant

01/30/2019 at 03:37PM

18
#42 - mkaminaga / @mkmng3

07/22/2019 at 08:22AM

18
#43 - Miłosz Łakomy / @foobar01123

02/20/2020 at 03:19AM

19
#44 - Walker Boh / @walker_boh

11/10/2015 at 05:32PM

19
#45 - Aaron Mininger / @AMininger

11/10/2015 at 05:58PM

19
#46 - ushumpei / @ushumpei_

11/12/2015 at 04:44PM

19
#47 - Steve Bitner / @fourbitbots

11/12/2015 at 08:22PM

19
#48 - Ricardo M. Vilchis / @ajkaanbal

11/12/2015 at 10:16PM

19
#49 - Nam Net / @tafopigibi

11/13/2015 at 10:45AM

19
#50 - Jon Krause / @jkrause314

11/19/2015 at 01:55AM

19
#51 - Mike Krason / @mfkrason

11/26/2015 at 11:18AM

19
#52 - Sean Stout / @s183s657

12/10/2015 at 03:46AM

19
#53 - Paul D. Kang / @pauldakang

12/11/2015 at 01:42AM

19
#54 - Dimitar Dimitrov / @kurkale6ka

03/11/2016 at 04:01PM

19
#55 - Ram Tamtam / @ramtamtamtam

06/29/2016 at 11:41AM

19
#56 - Will / @obiwan__k3n00bi

08/18/2016 at 03:32AM

19
#57 - James / @Dronak

08/27/2017 at 01:33AM

20
#58 - Tim Chase / @gumnos

11/10/2015 at 05:03PM

20
#59 - territorialmale / @territorialmale

11/16/2015 at 08:35AM

20
#60 - mrytsr / @mrytsr

11/16/2015 at 03:42PM