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

262 active golfers, 731 entries

Leaderboard (lowest score wins):
18
#211 - Sergey Semushin / @Predelnik

08/29/2015 at 08:39AM

18
#212 - Restroom Sounds / @RestroomSounds

09/08/2015 at 02:28AM

18
#213 - Andrew Michaud / @andrewjmichaud

09/15/2015 at 10:36PM

18
#214 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 07:36PM

18
#215 - Pete Sevander / @Sevanteri

11/12/2015 at 12:40PM

18
#216 - Izabel Jelenić / @IzabelJelenic

01/02/2016 at 08:57PM

18
#217 - Justin Thomas / @base698

01/28/2016 at 09:59PM

18
#218 - Mac Heller-Ogden / @twosoul

03/29/2016 at 09:44PM

18
#219 - Ryan van Rensburg / @rdvr001

07/23/2016 at 08:14AM

18
#220 - Marcel Akkerman / @MarcelAkkerman

12/22/2016 at 10:42AM

18
#221 - Michał Dytko / @DytkoM

12/22/2016 at 12:43PM

18
#222 - Gurukandhamoorthi / @Gurukandhamoor1

07/11/2017 at 02:25PM

18
#223 - Ben Hill / @KaizenSoze70

09/26/2017 at 05:42PM

18
#224 - Marius Jurgelenas / @MarenasLT

04/19/2018 at 12:39PM

18
#225 - Aaron / @_Lordofthevoid_

12/07/2019 at 09:07PM

18
#226 - RockerZZY / @rocker_zzy

06/11/2020 at 11:39PM

19
#227 - Laurent Stacul / @stac47

04/15/2015 at 11:38AM

19
#228 - Daniel Byron / @dansolo17

04/20/2015 at 03:24AM

19
#229 - Chase Vasic / @ChaseVasic

04/26/2015 at 09:12AM

19
#230 - Rolf / @liffon

04/29/2015 at 03:55PM

19
#231 - luffy / @raxcoi

05/13/2015 at 08:04PM

19
#232 - Eduardo Antunes / @ecsousa

05/30/2015 at 04:16AM

19
#233 - Marc Coquand / @MarcCoquand

05/30/2015 at 04:26PM

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

06/01/2015 at 12:58PM

19
#235 - Abdo Achkar / @Achkar

08/07/2015 at 10:24PM

19
#236 - Evan Coleman / @edc1591

08/19/2015 at 07:59PM

19
#237 - Hisco / @francis_vega

09/04/2015 at 11:58AM

19
#238 - Kyouma / @kyoumaJohn

10/14/2016 at 06:07PM

19
#239 - Jurica / @Jurica34581259

11/16/2018 at 04:37PM

19
#240 - faisal / @faisalhackshah

11/26/2018 at 07:04PM