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):
17
#151 - ushumpei / @ushumpei_

04/14/2015 at 04:09PM

17
#152 - simonced / @simonced

04/15/2015 at 03:51AM

17
#153 - Hendrik Lammers / @hendriklammers

04/15/2015 at 08:39PM

17
#154 - Oliver Christ / @0liverChrist

04/16/2015 at 08:01PM

17
#155 - Thomas / @moatra

04/21/2015 at 03:30AM

17
#156 - nulusr / @nulusr

04/21/2015 at 10:35AM

17
#157 - Stefan Knudsen / @knud32

04/25/2015 at 04:50AM

17
#158 - Slurpie Chapdash / @SlurpieChapdash

05/06/2015 at 08:04PM

17
#159 - mark0829 / @mark0829

05/07/2015 at 03:54AM

17
#160 - mat / @matgeist

05/21/2015 at 08:17PM

17
#161 - Personal Life Trackr / @PersLifeTrackr

05/24/2015 at 09:29AM

17
#162 - Bruce Woodward / @Bruce_Woodward

05/26/2015 at 03:14AM

17
#163 - Quota / @Quotad

06/12/2015 at 12:18PM

17
#164 - Omar Abou Mrad / @omaraboumrad

06/18/2015 at 01:26PM

17
#165 - Geoff Gu / @geoff_gu

07/02/2015 at 12:32PM

17
#166 - Samir Sadek / @netsamir

07/20/2015 at 09:44AM

17
#167 - James Pringle / @mathbyjames

07/21/2015 at 08:31PM

17
#168 - Roben Kleene / @robenkleene

07/30/2015 at 09:04PM

17
#169 - Jason Schulz / @uxcn_

08/01/2015 at 01:49AM

17
#170 - Tim Vail / @timdvail

08/07/2015 at 05:09AM

17
#171 - Blake Tereau / @BlakeTereau

08/11/2015 at 04:56PM

17
#172 - Veritas / @_VeritasL

08/17/2015 at 03:51PM

17
#173 - John Clara / @johnanthclara

08/20/2015 at 05:38AM

17
#174 - Yaroslav Kanarev / @yarosurabu

09/08/2015 at 04:47PM

17
#175 - Ben Vandervalk / @benvvalk

09/27/2015 at 05:00AM

17
#176 - Fredrik liljedahl / @fliljeda

11/06/2015 at 05:23PM

17
#177 - tPenguinLTG / @tpenguinltg

05/15/2016 at 06:43AM

17
#178 - Phoon / @justflashhim

05/11/2019 at 04:01PM

17
#179 - Ivo Blöchliger / @aigledesalpes

08/15/2019 at 07:41PM

18
#180 - Yann Moisan / @YannMoisan

04/09/2015 at 04:57PM