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

252 active golfers, 693 entries

Leaderboard (lowest score wins):
16
#121 - KangHun Seo / @shirano80

11/25/2016 at 06:47AM

16
#122 - BlackCap / @BlackCapCoder

11/30/2016 at 12:15PM

16
#123 - Yann / @yannstad

02/26/2017 at 02:05AM

16
#124 - Daniel / @Daniel00288663

03/22/2017 at 11:29AM

16
#125 - Brian Hall / @_bruab_

04/06/2017 at 02:58PM

16
#126 - Angel Chiang / @malakin

04/07/2017 at 09:31PM

16
#127 - 20speedvegan / @ashkevinm

04/13/2017 at 08:15PM

16
#128 - Remus Dalrymple / @bornintheflames

05/07/2017 at 11:15PM

16
#129 - Bruce Park / @bpark0

06/18/2017 at 10:35PM

16
#130 - Jacob Buete / @JBuete

07/04/2017 at 12:42PM

16
#131 - Stop and think / @ms_uncountable

07/10/2017 at 01:00PM

16
#132 - Arijus / @argshook

04/19/2018 at 12:39PM

16
#133 - slicklash / @slicklash

04/19/2018 at 12:40PM

16
#134 - Mihai / @mihaicristiant

12/23/2018 at 03:25PM

16
#135 - Chester Yap / @Chest_ErYap

08/03/2019 at 06:50PM

17
#136 - Tim Chase / @gumnos

04/09/2015 at 05:18PM

17
#137 - James / @Dronak

04/09/2015 at 05:31PM

17
#138 - Elizabeth / @sprinkles418

04/09/2015 at 05:57PM

17
#139 - kungfuchad / @kungfuchad

04/09/2015 at 06:34PM

17
#140 - Rob Milward / @RobMilward

04/09/2015 at 08:33PM

17
#141 - Josh Hartigan / @joshhartigan

04/10/2015 at 07:58AM

17
#142 - Erik Buček / @_EnterNameHere_

04/10/2015 at 08:32AM

17
#143 - steron / @steron23

04/10/2015 at 12:28PM

17
#144 - ZC-死理性派 / @zecyzhang

04/10/2015 at 01:01PM

17
#145 - Sigurður Ægir Jónsso / @siggiae

04/10/2015 at 04:06PM

17
#146 - Krzysztof / @Krzysztof2K

04/12/2015 at 10:55AM

17
#147 - Yuval Netanel / @Yuval5555

04/12/2015 at 11:18AM

17
#148 - ushumpei / @ushumpei_

04/14/2015 at 04:09PM

17
#149 - simonced / @simonced

04/15/2015 at 03:51AM

17
#150 - Hendrik Lammers / @hendriklammers

04/15/2015 at 08:39PM