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):
26
#271 - Michael Cramer / @mlcramer

04/11/2015 at 01:37AM

26
#272 - alex / @alexAngle8

08/22/2015 at 05:43AM

27
#273 - William Ott / @oddalot

04/11/2015 at 02:05PM

27
#274 - André Peric Tavares / @AndrePeric

07/30/2016 at 05:22PM

28
#275 - Joseph Siddall / @jbsiddall

04/19/2015 at 05:22AM

33
#276 - Teemu Okkonen / @TeemuOkkonen

07/07/2015 at 08:11PM

42
#277 - Andrew Larson / @applarson

04/15/2015 at 12:15AM

43
#278 - Arthur Karganyan / @arthurkarganyan

04/12/2015 at 10:23AM

53
#279 - Adrian Steffen / @fencer85math1

04/13/2015 at 09:58PM

55
#280 - Henrique Zerbini Junqueira de Assis / @ZerbiniAssis

10/23/2022 at 09:03PM

55
#281 - nickGPT / @nickandbro

08/28/2024 at 04:15AM