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):
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

15
#68 - Viktor Styrud / @ViktorStyrud

11/19/2019 at 11:35AM

15
#69 - Miłosz Łakomy / @foobar01123

12/06/2019 at 07:44AM

15
#70 - Delon / @delonleonard

01/25/2020 at 01:58AM

15
#71 - Ryan Nevius / @ryannevius

03/20/2020 at 06:37AM

15
#72 - Jean George / @JeanGeo20504212

01/02/2022 at 11:47PM

15
#73 - Omar Alawadhi / @OmarAla59544225

10/29/2022 at 05:23PM

15
#74 - Selvaganapathy P / @canabady

04/17/2023 at 01:58PM

15
#75 - scpchicken / @scpchick

10/18/2023 at 08:38PM

15
#76 - Peppa Pig / @PeppaPigSg

06/29/2024 at 06:02AM

15
#77 - ARK / @ARezaK

08/05/2024 at 02:02AM

16
#78 - Matt / @mcr05

04/09/2015 at 07:13PM

16
#79 - pftb12345 / @pftb12345

04/09/2015 at 11:23PM

16
#80 - Oleg Parashchenko / @olparko

04/09/2015 at 11:31PM

16
#81 - Henri Bourcereau / @mmai

04/10/2015 at 07:31AM

16
#82 - Marcelo Montu / @_mMontu_

04/10/2015 at 04:37PM

16
#83 - Rickard Fransson / @xxRion

04/10/2015 at 06:37PM

16
#84 - Petro Тrouq / @zulolosi

04/10/2015 at 06:57PM

16
#85 - Tournami / @Tournami

04/10/2015 at 07:26PM

16
#86 - Johannes H. / @neVexa

04/10/2015 at 07:43PM

16
#87 - E Both / @enboth

04/10/2015 at 08:08PM

16
#88 - Fan Zhang / @2bDeactivat3d

04/10/2015 at 09:19PM

16
#89 - Francois Marais / @maraisf

04/11/2015 at 08:29PM

16
#90 - Paul Diaconescu / @paulgtd

04/12/2015 at 09:18AM