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 279 remaining solutions by signing in and submitting your own entry
#280 Henrique Zerbini Junqueira de Assis / @ZerbiniAssis - Score: 55 - 10/23/22 @ 21:03
f,llxischA<Esc>hvbyf,lplrTf,lplrSf,lplrAf,lplrRf,lplrS<Esc>:wq<CR>

0 comments


#281 nickGPT / @nickandbro - Score: 55 - 08/28/24 @ 04:15
f,llxischA<Esc>hvbyf,lplrTf,lplrSf,lplrAf,lplrRf,lplrS<Esc>:wq<CR>

0 comments


Created by: @YannMoisan

281 active golfers, 793 entries

Leaderboard (lowest score wins):
16
#151 - jinx balotchnik / @balotchnik

07/23/2023 at 04:04AM

16
#152 - Don'tBeAlarmed / @DontBeAlarmed

05/29/2024 at 08:37AM

17
#153 - Tim Chase / @gumnos

04/09/2015 at 05:18PM

17
#154 - James / @Dronak

04/09/2015 at 05:31PM

17
#155 - Elizabeth / @sprinkles418

04/09/2015 at 05:57PM

17
#156 - kungfuchad / @kungfuchad

04/09/2015 at 06:34PM

17
#157 - Rob Milward / @RobMilward

04/09/2015 at 08:33PM

17
#158 - Josh Hartigan / @joshhartigan

04/10/2015 at 07:58AM

17
#159 - Erik Buček / @_EnterNameHere_

04/10/2015 at 08:32AM

17
#160 - steron / @steron23

04/10/2015 at 12:28PM

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

04/10/2015 at 01:01PM

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

04/10/2015 at 04:06PM

17
#163 - Krzysztof / @Krzysztof2K

04/12/2015 at 10:55AM

17
#164 - Yuval Netanel / @Yuval5555

04/12/2015 at 11:18AM

17
#165 - ushumpei / @ushumpei_

04/14/2015 at 04:09PM

17
#166 - simonced / @simonced

04/15/2015 at 03:51AM

17
#167 - Hendrik Lammers / @hendriklammers

04/15/2015 at 08:39PM

17
#168 - Oliver Christ / @0liverChrist

04/16/2015 at 08:01PM

17
#169 - Thomas / @moatra

04/21/2015 at 03:30AM

17
#170 - nulusr / @nulusr

04/21/2015 at 10:35AM

17
#171 - Stefan Knudsen / @knud32

04/25/2015 at 04:50AM

17
#172 - Slurpie Chapdash / @SlurpieChapdash

05/06/2015 at 08:04PM

17
#173 - mark0829 / @mark0829

05/07/2015 at 03:54AM

17
#174 - mat / @matgeist

05/21/2015 at 08:17PM

17
#175 - Personal Life Trackr / @PersLifeTrackr

05/24/2015 at 09:29AM

17
#176 - Bruce Woodward / @Bruce_Woodward

05/26/2015 at 03:14AM

17
#177 - Quota / @Quotad

06/12/2015 at 12:18PM

17
#178 - Omar Abou Mrad / @omaraboumrad

06/18/2015 at 01:26PM

17
#179 - Geoff Gu / @geoff_gu

07/02/2015 at 12:32PM

17
#180 - Samir Sadek / @netsamir

07/20/2015 at 09:44AM