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 72 remaining solutions by signing in and submitting your own entry
#73 Gerald Tilma / GeraldTilma - Score: 24 - 11/11/15 @ 04:40
fDqqvui-<Esc>qfA@qfM@qfF@qZZ

0 comments

#74 Artur Taranchiev / ewokru - Score: 24 - 11/11/15 @ 11:00
:s/[DAMF]/-\l&/g<CR>5f-x~ZZ

0 comments

#75 Viktor Chynarov / vchynarov - Score: 24 - 11/12/15 @ 01:37
fDqqi-<Esc>l~qfA@qfM@qfF@qZZ

0 comments

#76 Cory Duplantis / CoryDuplantis - Score: 24 - 11/16/15 @ 00:05
:%s/\S\zs[A-Z]/-\l&/g<CR>ZZ

0 comments

#77 manfred knapp / fred_pooshka - Score: 24 - 12/13/15 @ 13:23
fDqqi-<Esc>l~qfA@qfM@qfF@qZZ

0 comments

#78 Jakob Schöttl / jschoettl - Score: 24 - 12/31/15 @ 08:07
fDqai-<Esc>l~qfA@afM@afF@aZZ

0 comments

#79 Oliver Christ / 0liverChrist - Score: 24 - 07/12/16 @ 23:01
fDqq~hi-<Esc>qfA@qfM@@fF@@ZZ

0 comments

#80 VimGolfUser / UserVim - Score: 25 - 11/11/15 @ 00:11
:s/[AMDF]/-\l&/gc<CR>yyyyqZZ

0 comments

#81 Phil Ting / philipjting - Score: 25 - 11/15/15 @ 05:58
:s/[DAMF]/-\l&/g<CR>$F-xrAZZ

0 comments

#82 かりうむ / ka1l - Score: 25 - 11/17/15 @ 06:46
:s/[DAMF]/-\L&/g<CR>5/-<CR>x~ZZ

0 comments

#83 luffy / raxcoi - Score: 26 - 11/10/15 @ 16:49
:s/[A-Z]/-\l&/gc<CR>nnyyyyqZZ

0 comments

#84 Aurélien Lair / aurelien_lair - Score: 26 - 11/10/15 @ 22:26
fDs-d<Esc>fAs-a<Esc>fMs-m<Esc>fFs-f<Esc>ZZ

0 comments

#85 Dave Powell / d_pow_pow - Score: 26 - 11/13/15 @ 13:40
fgvE<Esc>:s/\%V[A-Z]/-\l&/g<CR>ZZ

0 comments

#86 Mendel Simon / agentms11 - Score: 26 - 12/07/15 @ 21:58
fDs-d<Esc>fAs-a<Esc>fMs-m<Esc>fFs-f<Esc>ZZ

0 comments

#87 jdupont655 / jdupont655 - Score: 31 - 09/07/16 @ 13:37
fgfDi-<Esc>l~fAi-<Esc>l~fMi-<Esc>l~li-<Esc>l~ZZ

0 comments

#88 Gurukandhamoorthi / Gurukandhamoor1 - Score: 34 - 07/13/17 @ 12:21
:%s/[A-Z]/-\l&/g<CR>x~f-x~$F-x~F-x~ZZ

0 comments

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

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

90 active golfers, 247 entries

Leaderboard (lowest score wins):
18
#1 - Urtica dioica / udioica

11/10/2015 at 05:01PM

18
#2 - John Braxler / braxler

11/10/2015 at 05:35PM

18
#3 - Quota / Quotad

11/11/2015 at 09:41AM

18
#4 - Árpád Krejczinger / krarpi

11/11/2015 at 12:26PM

18
#5 - Peter / sunirbmag

11/11/2015 at 09:05PM

18
#6 - Dane Summers / dsummersl

11/11/2015 at 09:29PM

18
#7 - Jonathan Lao-Kan / jlaokan

11/12/2015 at 08:48PM

18
#8 - Curt Matz / sitrucz

11/12/2015 at 11:18PM

18
#9 - Robert Perce / robertperce

11/13/2015 at 06:01AM

18
#10 - かんじ / CENT_SIGMA

11/13/2015 at 07:57AM

18
#11 - Smylers / Smylers2

11/13/2015 at 03:04PM

18
#12 - Petro Тrouq / zulolosi

11/14/2015 at 09:28PM

18
#13 - herbage / herbage2

11/16/2015 at 12:21PM

18
#14 - Ryuichiro / ryuichiro44

11/19/2015 at 03:40PM

18
#15 - Valery / MrComBin

11/20/2015 at 12:20PM

18
#16 - AD / Lievr0

11/21/2015 at 04:27AM

18
#17 - chris nojima / chrisnojima

11/23/2015 at 12:47AM

18
#18 - Faat / i_faat

11/24/2015 at 12:54PM

18
#19 - Kaue Silveira / kssilveira

11/26/2015 at 12:16AM

18
#20 - Casey Pearring / StandardBias

11/27/2015 at 08:45PM

18
#21 - kleiduif / bertwinwubs

11/29/2015 at 01:44AM

18
#22 - Matthew Desjardins / Desjardins_M

12/11/2015 at 09:03PM

18
#23 - Jan Path / jan_path

12/17/2015 at 10:48PM

18
#24 - DrHobo / _DrHobo_

01/04/2016 at 06:06PM

18
#25 - Saki Gw / Sakigw

01/06/2016 at 06:06PM

18
#26 - jackliusr / jackliusr

01/09/2016 at 03:58PM

18
#27 - Roberto Carraretto / robcarraretto

01/09/2016 at 10:35PM

18
#28 - Aleksey Zhidkov / AlexeyZhidkov

01/21/2016 at 01:02PM

18
#29 - Austin Wood / indiesquidge

01/22/2016 at 05:58PM

18
#30 - Ian Trophy / prfrgg

01/30/2016 at 01:04PM

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

19
#38 - Walker Boh / walker_boh

11/10/2015 at 05:32PM

19
#39 - Aaron Mininger / AMininger

11/10/2015 at 05:58PM

19
#40 - ushumpei / funnel_mune

11/12/2015 at 04:44PM

19
#41 - Steve Bitner / fourbitbots

11/12/2015 at 08:22PM

19
#42 - Ricardo M. Vilchis / ajkaanbal

11/12/2015 at 10:16PM

19
#43 - Nam Net / tafopigibi

11/13/2015 at 10:45AM

19
#44 - Jon Krause / jkrause314

11/19/2015 at 01:55AM

19
#45 - Mike Krason / mfkrason

11/26/2015 at 11:18AM

19
#46 - Sean Stout / s183s657

12/10/2015 at 03:46AM

19
#47 - Paul D. Kang / pauldakang

12/11/2015 at 01:42AM

19
#48 - Dimitar Dimitrov / kurkale6ka

03/11/2016 at 04:01PM

19
#49 - Ram Tamtam / ramtamtamtam

06/29/2016 at 11:41AM

19
#50 - Will / w_labranche

08/18/2016 at 03:32AM

20
#51 - Tim Chase / gumnos

11/10/2015 at 05:03PM

20
#52 - territorialmale / territorialmale

11/16/2015 at 08:35AM

20
#53 - mrytsr / mrytsr

11/16/2015 at 03:42PM

20
#54 - merphant / merphant

11/18/2015 at 08:00AM

20
#55 - Thomas Lovén / thomasloven

12/09/2015 at 03:28PM

20
#56 - Sinclair Desaud / sdesaud

01/07/2016 at 01:31AM

20
#57 - Goonoo Kim / mctenshi

01/09/2016 at 02:31PM

20
#58 - Sergey Fedorov / Shade30

01/13/2016 at 10:39AM

20
#59 - Peter Brynza / v3_1

08/19/2016 at 09:28PM

22
#60 - Robert Goeddel / f0rdpr3fect

11/11/2015 at 10:26PM

22
#61 - Paulo Romeira / pauloromeira

12/07/2015 at 08:01AM

22
#62 - Durga Swaroop Perla / durgaswaroop

02/03/2016 at 01:20PM

22
#63 - Kostas / blackraven_13

02/23/2016 at 02:35PM

22
#64 - Andreas Carben / meiner_eins

03/13/2016 at 10:58AM

22
#65 - John Smith / JohnSmith448816

05/15/2016 at 03:17AM

22
#66 - Andres Araya / arayaandresfco

05/25/2016 at 02:13PM

22
#67 - TweetDreams / TweetMusicians

10/16/2016 at 12:29AM

23
#68 - Pete Sevander / Sevanteri

11/11/2015 at 10:43AM

23
#69 - mnx / mnxx

11/14/2015 at 08:24PM

23
#70 - retro / tryphopp

01/12/2016 at 05:52AM

23
#71 - Cristian Lupașcu / clupasq

02/08/2016 at 04:58PM

23
#72 - Daniel / Daniel00288663

03/30/2017 at 02:19PM

24
#73 - Gerald Tilma / GeraldTilma

11/11/2015 at 04:40AM

24
#74 - Artur Taranchiev / ewokru

11/11/2015 at 11:00AM

24
#75 - Viktor Chynarov / vchynarov

11/12/2015 at 01:37AM

24
#76 - Cory Duplantis / CoryDuplantis

11/16/2015 at 12:05AM

24
#77 - manfred knapp / fred_pooshka

12/13/2015 at 01:23PM

24
#78 - Jakob Schöttl / jschoettl

12/31/2015 at 08:07AM

24
#79 - Oliver Christ / 0liverChrist

07/12/2016 at 11:01PM

25
#80 - VimGolfUser / UserVim

11/11/2015 at 12:11AM

25
#81 - Phil Ting / philipjting

11/15/2015 at 05:58AM

25
#82 - かりうむ / ka1l

11/17/2015 at 06:46AM

26
#83 - luffy / raxcoi

11/10/2015 at 04:49PM

26
#84 - Aurélien Lair / aurelien_lair

11/10/2015 at 10:26PM

26
#85 - Dave Powell / d_pow_pow

11/13/2015 at 01:40PM

26
#86 - Mendel Simon / agentms11

12/07/2015 at 09:58PM

31
#87 - jdupont655 / jdupont655

09/07/2016 at 01:37PM

34
#88 - Gurukandhamoorthi / Gurukandhamoor1

07/13/2017 at 12:21PM

41
#89 - William Ott / oddalot

11/19/2015 at 05:36AM

41
#90 - lonerr / LonerrOleg

11/22/2015 at 12:48AM