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):
16
#91 - Brian Olpin / @bolpin

04/13/2015 at 06:12AM

16
#92 - Jonny - Male 2.0.37 / @Jonnytron

04/14/2015 at 08:23PM

16
#93 - Chad / @__chad__

04/15/2015 at 06:58PM

16
#94 - Mike McGowan / @mikemcgowan75

04/16/2015 at 09:05PM

16
#95 - Pimzero / @pimzer0

04/18/2015 at 12:51AM

16
#96 - matthieu le grix / @mlegrix

04/18/2015 at 09:11PM

16
#97 - i5513 / @i5513

04/20/2015 at 08:23PM

16
#98 - Andreas Carben / @meiner_eins

04/25/2015 at 09:17AM

16
#99 - Antony Scriven / @antonyscriven

04/27/2015 at 08:12AM

16
#100 - Corentin Lapeyre / @c_lapeyre

05/02/2015 at 06:35AM

16
#101 - Mariano Macchi / @mmacchif

05/02/2015 at 03:51PM

16
#102 - Sam Cristall / @sbcristall

05/04/2015 at 10:35PM

16
#103 - Tom van der Lee / @TomVdLee

05/13/2015 at 07:04AM

16
#104 - Mateusz / @foobar98765

05/22/2015 at 02:28PM

16
#105 - Adetque / @Adetque

05/29/2015 at 09:02AM

16
#106 - Lifepillar / @lifepillar

06/15/2015 at 08:16PM

16
#107 - Mutter Mumble / @muttermumble

06/17/2015 at 03:27PM

16
#108 - 𖤐 𝔅𝔞𝔡𝔤𝔢𝔯 𖤐 🦇 / @drksvnt

06/25/2015 at 10:57AM

16
#109 - Skúli Jóhannsson / @skulibj

06/25/2015 at 07:49PM

16
#110 - Jack Z / @itszhou

06/28/2015 at 04:01PM

16
#111 - Peter B / @l0wm4x

08/03/2015 at 08:22PM

16
#112 - Marcin Szamotulski / @me_coot

08/15/2015 at 05:38PM

16
#113 - Nick Xiao / @nicoster

08/22/2015 at 04:18AM

16
#114 - Paulo Romeira / @pauloromeira

08/24/2015 at 03:05AM

16
#115 - Kirill Cherkashin / @kirjs

09/01/2015 at 06:07PM

16
#116 - oscar / @zonza_mas

09/04/2015 at 03:16PM

16
#117 - thlix / @thlix

01/11/2016 at 08:45PM

16
#118 - retro / @tryphopp

01/20/2016 at 08:35AM

16
#119 - Guirec CORBEL / @GuirecCorbel

02/10/2016 at 11:39PM

16
#120 - Dimitar Dimitrov / @kurkale6ka

03/14/2016 at 12:28PM