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 5526aef5814f89118e00f23c

camel riding

add a prefix on some camelCase variables

Start file
val (schemas, activeCount, techTagCount, sharedCount, allowedPathsCount, rootCount, searchableCount) = fieldStats(store)
End file
val (schemas, schActiveCount, schTechTagCount, schSharedCount, schAllowedPathsCount, schRootCount, schSearchableCount) = fieldStats(store)

View Diff

diff --git a/vimgolf-input.txt b/vimgolf-output.txt
index 9d508c1..212ab0c 100644
--- a/vimgolf-input.txt
+++ b/vimgolf-output.txt
@@ -1 +1 @@
-val (schemas, activeCount, techTagCount, sharedCount, allowedPathsCount, rootCount, searchableCount) = fieldStats(store)
+val (schemas, schActiveCount, schTechTagCount, schSharedCount, schAllowedPathsCount, schRootCount, schSearchableCount) = fieldStats(store)

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 254 remaining solutions by signing in and submitting your own entry
#255 Adrian Steffen / @fencer85math1 - Score: 53 - 04/13/15 @ 21:58
4wgUl2w2wugUl2w.2w.2w.2w.2w.isch<C-C><C-C><C-C><C-C>3b.3b.3b.3b.3b.ZZ

0 comments


Created by: @YannMoisan

255 active golfers, 703 entries

Leaderboard (lowest score wins):
18
#211 - Izabel Jelenić / @IzabelJelenic

01/02/2016 at 08:57PM

18
#212 - Justin Thomas / @base698

01/28/2016 at 09:59PM

18
#213 - Mac Heller-Ogden / @twosoul

03/29/2016 at 09:44PM

18
#214 - Ryan van Rensburg / @rdvr001

07/23/2016 at 08:14AM

18
#215 - Marcel Akkerman / @MarcelAkkerman

12/22/2016 at 10:42AM

18
#216 - Michał Dytko / @DytkoM

12/22/2016 at 12:43PM

18
#217 - Gurukandhamoorthi / @Gurukandhamoor1

07/11/2017 at 02:25PM

18
#218 - Ben Hill / @KaizenSoze70

09/26/2017 at 05:42PM

18
#219 - Marius Jurgelenas / @MarenasLT

04/19/2018 at 12:39PM

19
#220 - Laurent Stacul / @stac47

04/15/2015 at 11:38AM

19
#221 - Daniel Byron / @dansolo17

04/20/2015 at 03:24AM

19
#222 - Chase Vasic / @ChaseVasic

04/26/2015 at 09:12AM

19
#223 - Rolf / @liffon

04/29/2015 at 03:55PM

19
#224 - luffy / @raxcoi

05/13/2015 at 08:04PM

19
#225 - Eduardo Antunes / @ecsousa

05/30/2015 at 04:16AM

19
#226 - Marc Coquand / @MarcCoquand

05/30/2015 at 04:26PM

19
#227 - Aurélien Deharbe / @0x_ad

06/01/2015 at 12:58PM

19
#228 - Abdo Achkar / @Achkar

08/07/2015 at 10:24PM

19
#229 - Evan Coleman / @edc1591

08/19/2015 at 07:59PM

19
#230 - Francis / @francis_vega

09/04/2015 at 11:58AM

19
#231 - Kyouma / @kyoumaJohn

10/14/2016 at 06:07PM

19
#232 - Jurica / @Jurica34581259

11/16/2018 at 04:37PM

19
#233 - faisal / @faisalhackshah

11/26/2018 at 07:04PM

20
#234 - Anderson Mesquita / @andersonvom

04/17/2015 at 07:31AM

20
#235 - blamitter ✏️ / @blamitter

04/17/2015 at 09:14PM

20
#236 - chvzvhn / @chvzvhn

04/26/2015 at 01:29AM

20
#237 - Timothée Gauthier / @zmf_tim

06/11/2015 at 10:46PM

20
#238 - Léo S / @LeoSauvaget

08/29/2015 at 12:18AM

20
#239 - Micha / @michman89

08/15/2016 at 12:45PM

20
#240 - Geoff / @RealGeoffErwin

12/20/2017 at 05:51PM