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
#241 - RockerZZY / @rocker_zzy

06/11/2020 at 11:39PM

18
#242 - Knaughty / @Kn4ughty

08/28/2024 at 03:14AM

19
#243 - Laurent Stacul / @stac47

04/15/2015 at 11:38AM

19
#244 - Daniel Byron / @dansolo17

04/20/2015 at 03:24AM

19
#245 - Chase Vasic / @ChaseVasic

04/26/2015 at 09:12AM

19
#246 - Rolf / @liffon

04/29/2015 at 03:55PM

19
#247 - luffy / @raxcoi

05/13/2015 at 08:04PM

19
#248 - Eduardo Antunes / @ecsousa

05/30/2015 at 04:16AM

19
#249 - Marc Coquand / @MarcCoquand

05/30/2015 at 04:26PM

19
#250 - Aurélien Deharbe / @0x_ad

06/01/2015 at 12:58PM

19
#251 - Abdo Achkar / @Achkar

08/07/2015 at 10:24PM

19
#252 - Evan Coleman / @edc1591

08/19/2015 at 07:59PM

19
#253 - Hisco / @francis_vega

09/04/2015 at 11:58AM

19
#254 - Kyouma / @kyoumaJohn

10/14/2016 at 06:07PM

19
#255 - Jurica / @Jurica34581259

11/16/2018 at 04:37PM

19
#256 - faisal / @faisalhackshah

11/26/2018 at 07:04PM

19
#257 - Cameron Thomas / @cthom055

07/31/2024 at 08:44AM

20
#258 - Anderson Mesquita / @andersonvom

04/17/2015 at 07:31AM

20
#259 - blamitter ✏️ / @blamitter

04/17/2015 at 09:14PM

20
#260 - chvzvhn / @chvzvhn

04/26/2015 at 01:29AM

20
#261 - zmf_tim / @zmf_tim

06/11/2015 at 10:46PM

20
#262 - Léo S / @LeoSauvaget

08/29/2015 at 12:18AM

20
#263 - Micha / @michman89

08/15/2016 at 12:45PM

20
#264 - Geoff / @RealGeoffErwin

12/20/2017 at 05:51PM

21
#265 - Magnus Stavngaard / @bus3450

06/01/2015 at 06:03PM

25
#266 - James Baird / @jlbaird3

05/04/2015 at 02:22AM

25
#267 - Jonas Ng / @jnshey

05/17/2015 at 07:53AM

25
#268 - darookee / @darookee

07/24/2015 at 09:31AM

25
#269 - Adam Townsend / @despendesigns

01/26/2018 at 04:20AM

25
#270 - Vytautas Jakutis / @jakutis0

04/19/2018 at 12:41PM