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):
21
#241 - Magnus Stavngaard / @bus3450

06/01/2015 at 06:03PM

25
#242 - James Baird / @jlbaird3

05/04/2015 at 02:22AM

25
#243 - Jonas Ng / @jnshey

05/17/2015 at 07:53AM

25
#244 - darookee / @darookee

07/24/2015 at 09:31AM

25
#245 - Adam Townsend / @despendesigns

01/26/2018 at 04:20AM

25
#246 - Vytautas Jakutis / @jakutis0

04/19/2018 at 12:41PM

26
#247 - Michael Cramer / @mlcramer

04/11/2015 at 01:37AM

26
#248 - alex / @alexAngle8

08/22/2015 at 05:43AM

27
#249 - William Ott / @oddalot

04/11/2015 at 02:05PM

27
#250 - André Peric Tavares / @AndrePeric

07/30/2016 at 05:22PM

28
#251 - Joseph Siddall / @jbsiddall

04/19/2015 at 05:22AM

33
#252 - Teemu Okkonen / @TeemuOkkonen

07/07/2015 at 08:11PM

42
#253 - Andrew Larson / @applarson

04/15/2015 at 12:15AM

43
#254 - Arthur Karganyan / @arthurkarganyan

04/12/2015 at 10:23AM

53
#255 - Adrian Steffen / @fencer85math1

04/13/2015 at 09:58PM