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


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

118 active golfers, 320 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

18
#44 - Jean George / @JeanGeo20504212

03/21/2022 at 12:48PM

18
#45 - constap / @constap

05/09/2024 at 04:13AM

18
#46 - Peppa Pig / @PeppaPigSg

07/03/2024 at 01:32AM

18
#47 - nickGPT / @nickandbro

08/28/2024 at 03:48AM

19
#48 - Walker Boh / @walker_boh

11/10/2015 at 05:32PM

19
#49 - Aaron Mininger / @AMininger

11/10/2015 at 05:58PM

19
#50 - ushumpei / @ushumpei_

11/12/2015 at 04:44PM

19
#51 - Steve / @fourbitbots

11/12/2015 at 08:22PM

19
#52 - Ricardo M. Vilchis / @ajkaanbal

11/12/2015 at 10:16PM

19
#53 - Nam Net / @tafopigibi

11/13/2015 at 10:45AM

19
#54 - Jon Krause / @jkrause314

11/19/2015 at 01:55AM

19
#55 - Mike Krason / @mfkrason

11/26/2015 at 11:18AM

19
#56 - Sean Stout / @s183s657

12/10/2015 at 03:46AM

19
#57 - Paul D. Kang / @pauldakang

12/11/2015 at 01:42AM

19
#58 - Dimitar Dimitrov / @kurkale6ka

03/11/2016 at 04:01PM

19
#59 - Ram Tamtam / @ramtamtamtam

06/29/2016 at 11:41AM

19
#60 - Will / @obiwan__k3n00bi

08/18/2016 at 03:32AM