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):
15
#61 - ParasamGateZero / @ParasamGateZero

02/22/2018 at 03:17AM

15
#62 - DHM / @DHM29978992

04/28/2018 at 02:59PM

15
#63 - Daniël De Koker / @daniel_koker

07/04/2018 at 10:57PM

15
#64 - Dax / @zacoxi

11/19/2018 at 06:49AM

15
#65 - name / @name65894813

11/24/2018 at 05:03AM

15
#66 - majo senf / @majo_senf

06/21/2019 at 12:22PM

15
#67 - Martin Delille / @martinodelilo

08/22/2019 at 12:39PM

16
#68 - Matt / @mcr05

04/09/2015 at 07:13PM

16
#69 - pftb12345 / @pftb12345

04/09/2015 at 11:23PM

16
#70 - Oleg Parashchenko / @olparko

04/09/2015 at 11:31PM

16
#71 - Henri Bourcereau / @mmai

04/10/2015 at 07:31AM

16
#72 - Marcelo Montu / @_mMontu_

04/10/2015 at 04:37PM

16
#73 - Rickard Fransson / @xxRion

04/10/2015 at 06:37PM

16
#74 - Petro Тrouq / @zulolosi

04/10/2015 at 06:57PM

16
#75 - Tournami / @Tournami

04/10/2015 at 07:26PM

16
#76 - Johannes H. / @neVexa

04/10/2015 at 07:43PM

16
#77 - E Both / @enboth

04/10/2015 at 08:08PM

16
#78 - Fan Zhang / @2bDeactivat3d

04/10/2015 at 09:19PM

16
#79 - François Marais / @maraisf

04/11/2015 at 08:29PM

16
#80 - Paul Diaconescu / @paulgtd

04/12/2015 at 09:18AM

16
#81 - Brian Olpin / @bolpin

04/13/2015 at 06:12AM

16
#82 - Jonny / @Jonnytron

04/14/2015 at 08:23PM

16
#83 - Chad / @__chad__

04/15/2015 at 06:58PM

16
#84 - Mike McGowan / @mikemcgowan75

04/16/2015 at 09:05PM

16
#85 - Pimzero / @pimzer0

04/18/2015 at 12:51AM

16
#86 - matthieu le grix / @mlegrix

04/18/2015 at 09:11PM

16
#87 - i5513 / @i5513

04/20/2015 at 08:23PM

16
#88 - Andreas Carben / @meiner_eins

04/25/2015 at 09:17AM

16
#89 - Antony Scriven / @antonyscriven

04/27/2015 at 08:12AM

16
#90 - Corentin Lapeyre / @c_lapeyre

05/02/2015 at 06:35AM