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):
18
#211 - Russell Ball / @rtball2

04/17/2015 at 09:59PM

18
#212 - Nathan LaVeck / @nslaveck

04/19/2015 at 08:31PM

18
#213 - Gracjan Grala / @gracjangrala

04/21/2015 at 05:05PM

18
#214 - Slartibartfast / @S_Bartfast

04/22/2015 at 08:57AM

18
#215 - Michael Cordell / @mike_cordell

04/27/2015 at 04:25PM

18
#216 - Olivier Debon / @OlivierSwift

05/05/2015 at 10:03AM

18
#217 - R. R. Provencher / @RRProvencher

05/08/2015 at 09:51PM

18
#218 - Mauro Persano / @fzort

05/23/2015 at 04:07PM

18
#219 - Ammar Najjar / @ammarnajjar

05/25/2015 at 07:22PM

18
#220 - Shizukesa / @Shizukesa

07/06/2015 at 10:39PM

18
#221 - Lindsay Swift / @_lindsai_

07/07/2015 at 01:38AM

18
#222 - Joel Gallant / @joelg236

07/23/2015 at 03:07PM

18
#223 - aisapatino / @aisapatino

08/02/2015 at 03:37AM

18
#224 - Дима Давыдов / @xaykot

08/14/2015 at 09:34PM

18
#225 - Jesse Atkinson / @jsatk

08/29/2015 at 03:09AM

18
#226 - Sergey Semushin / @Predelnik

08/29/2015 at 08:39AM

18
#227 - Restroom Sounds / @RestroomSounds

09/08/2015 at 02:28AM

18
#228 - Andrew Michaud / @andrewjmichaud

09/15/2015 at 10:36PM

18
#229 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 07:36PM

18
#230 - Pete Sevander / @Sevanteri

11/12/2015 at 12:40PM

18
#231 - Izabel Jelenić / @IzabelJelenic

01/02/2016 at 08:57PM

18
#232 - Justin Thomas / @base698

01/28/2016 at 09:59PM

18
#233 - Mac Heller-Ogden / @twosoul

03/29/2016 at 09:44PM

18
#234 - Ryan van Rensburg / @rdvr001

07/23/2016 at 08:14AM

18
#235 - Marcel Akkerman / @MarcelAkkerman

12/22/2016 at 10:42AM

18
#236 - Michał Dytko / @DytkoM

12/22/2016 at 12:43PM

18
#237 - Gurukandhamoorthi / @Gurukandhamoor1

07/11/2017 at 02:25PM

18
#238 - Ben Hill / @KaizenSoze70

09/26/2017 at 05:42PM

18
#239 - Marius Jurgelenas / @MarenasLT

04/19/2018 at 12:39PM

18
#240 - Aaron / @_Lordofthevoid_

12/07/2019 at 09:07PM