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
#1 - Urtica dioica / @udioica

04/09/2015 at 06:18PM

15
#2 - John Braxler / @braxler

04/10/2015 at 12:10PM

15
#3 - Ducky / @MegaDucky9000

04/10/2015 at 01:35PM

15
#4 - Mattias Fransson / @azzidoos

04/10/2015 at 08:07PM

15
#5 - Ala' Ibrahim / @alaa_ibrahim

04/11/2015 at 12:43AM

15
#6 - Amir Kremer / @AmirKremer

04/12/2015 at 11:22AM

15
#7 - Bradley Hardy / @bradleyishardy

04/12/2015 at 01:04PM

15
#8 - Andrew Joe / @andrewajoe

04/12/2015 at 09:27PM

15
#9 - Borimir Resurrected / @Borimir

04/15/2015 at 05:25AM

15
#10 - Joshua Simmons / @MmnJoshua

04/15/2015 at 05:26AM

15
#11 - Seiichi Satomi / @Sewitch7045

04/15/2015 at 10:46AM

15
#12 - lukaskrieger / @lukaskrieger

04/16/2015 at 10:30AM

15
#13 - Roman Charuhin / @10mpy

04/16/2015 at 11:22AM

15
#14 - we’re going to need a bigger bot / @assaflavie

04/16/2015 at 06:22PM

15
#15 - Charles Joachim / @cacplate

04/17/2015 at 02:59PM

15
#16 - Joop joopsen / @RapidLoL

04/20/2015 at 09:10PM

15
#17 - horace / @hor1ace

04/22/2015 at 12:04PM

15
#18 - Giovanni Garufi / @garufi_giovanni

04/23/2015 at 08:11PM

15
#19 - smokemachine / @smokemachine

05/10/2015 at 01:18AM

15
#20 - DrHobo / @_DrHobo_

05/10/2015 at 10:32PM

15
#21 - Spy / @thatspysaspy

05/13/2015 at 12:21AM

15
#22 - danweaver / @danweaver

05/14/2015 at 03:56AM

15
#23 - Peter Burt / @peterburt

05/17/2015 at 11:46PM

15
#24 - Clark DuVall / @theclarkatron

05/21/2015 at 08:22PM

15
#25 - David Stensland / @DavidStensland

05/21/2015 at 09:57PM

15
#26 - ahumph / @ahumph

06/10/2015 at 10:50AM

15
#27 - Hao Deng / @haodeng

06/11/2015 at 02:18PM

15
#28 - Thomas McGinniss / @thom_bomb75

06/11/2015 at 06:26PM

15
#29 - Andrew / @vimGolfAndrew

07/02/2015 at 09:36PM

15
#30 - Louis Burke / @LambdaABeta

07/07/2015 at 07:20PM