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):
17
#181 - James Pringle / @mathbyjames

07/21/2015 at 08:31PM

17
#182 - Roben Kleene / @robenkleene

07/30/2015 at 09:04PM

17
#183 - Jason Schulz / @uxcn_

08/01/2015 at 01:49AM

17
#184 - Tim Vail / @timdvail

08/07/2015 at 05:09AM

17
#185 - Blake Tereau / @BlakeTereau

08/11/2015 at 04:56PM

17
#186 - Veritas / @_VeritasL

08/17/2015 at 03:51PM

17
#187 - John Clara / @johnanthclara

08/20/2015 at 05:38AM

17
#188 - Yaroslav Kanarev / @yarosurabu

09/08/2015 at 04:47PM

17
#189 - Ben Vandervalk / @benvvalk

09/27/2015 at 05:00AM

17
#190 - Fredrik liljedahl / @fliljeda

11/06/2015 at 05:23PM

17
#191 - tPenguinLTG / @tpenguinltg

05/15/2016 at 06:43AM

17
#192 - Phoon / @justflashhim

05/11/2019 at 04:01PM

17
#193 - Ivo Blöchliger / @aigledesalpes

08/15/2019 at 07:41PM

17
#194 - pysnow530 / @pysnow530

11/29/2019 at 05:00AM

17
#195 - Auri Iodide / @auri_iodide

03/08/2022 at 11:50PM

17
#196 - Brandon / @Brandon10678836

08/26/2022 at 02:37PM

17
#197 - James Marshall / @astrophd

10/23/2022 at 02:41AM

17
#198 - Olivier Bégassat / @zk_evm

06/14/2023 at 05:47PM

17
#199 - constap / @constap

05/22/2024 at 12:57PM

18
#200 - Yann Moisan / @YannMoisan

04/09/2015 at 04:57PM

18
#201 - marcelo jacobus / @marcelo_jacobus

04/10/2015 at 03:47PM

18
#202 - Omer Lachish / @rauchy

04/12/2015 at 11:10AM

18
#203 - Dan Evron / @danevron

04/12/2015 at 11:16AM

18
#204 - John Lee / @NSA_agent_209

04/12/2015 at 06:38PM

18
#205 - Koen De Causmaecker / @KoenCaus

04/12/2015 at 08:59PM

18
#206 - Bart / @oneofmanybarts

04/13/2015 at 11:25AM

18
#207 - P-H N. / @PeAcHe41

04/14/2015 at 12:14PM

18
#208 - Daniel Pham / @dany_pham

04/16/2015 at 02:13AM

18
#209 - Will McClellan / @willmcc_

04/17/2015 at 07:13AM

18
#210 - 김재겸 / @KimJaeKyeom

04/17/2015 at 08:57AM