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 5d7fad5deac0df0006fc224a

SCREAMING_SNAKE_CASE to Title Case

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

Start file
EMPLOYEE_NAME

REVENUE_YEAR_TO_DATE

SALARY
End file
Employee Name

Revenue Year To Date

Salary

View Diff

1c1
< EMPLOYEE_NAME
---
> Employee Name
3c3
< REVENUE_YEAR_TO_DATE
---
> Revenue Year To Date
5c5
< SALARY
\ No newline at end of file
---
> Salary
\ No newline at end of file

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 194 remaining solutions by signing in and submitting your own entry
#195 Ahmed Zakir / @ahmadmzak - Score: 80 - 01/26/20 @ 01:34
:%s/_/ /g<CR>gg<C-V>5j$gu<C-V>5jgUqwqqqqwgUl<Esc>jjhgUwukjlgU<Esc>hgUllllllgUlllllg<BS><Esc><Esc><Esc>hgUl<Esc><Esc>jjj:x<CR>

0 comments


Created by: @StoneTelescope

195 active golfers, 927 entries

Leaderboard (lowest score wins):
21
#91 - Aleks Kissinger / @AleksKissinger

10/24/2020 at 10:57AM

22
#92 - Jonathan Eidsness / @jonathaneidsnes

09/22/2019 at 01:30PM

22
#93 - Chris Covert / @covertcj

11/07/2019 at 06:59PM

22
#94 - mogitate / @mutemeat

11/15/2019 at 04:36PM

22
#95 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 05:59PM

26
#96 - Francisco Romero / @PanchoopRomero

09/19/2019 at 10:05PM

26
#97 - José / @AngelGaldamez

09/21/2019 at 06:25AM

26
#98 - Константин / @pillar_vandyke

10/17/2019 at 12:33PM

26
#99 - Adam Katz / @AdamKat01277576

12/10/2019 at 02:09PM

26
#100 - Dan Kilman / @dan_kilman

12/18/2019 at 08:08PM

27
#101 - Ariel Miculas / @ArielMiculas

09/18/2019 at 02:46PM

27
#102 - Daniel Beck / @daniel_beck_il

09/19/2019 at 02:01PM

27
#103 - Madelyn Freed / @EcoBummer

10/10/2019 at 07:44PM

27
#104 - Nick Yeow / @nickyeow

10/19/2019 at 01:36PM

27
#105 - TimMcGuire / @mcguire

10/26/2019 at 01:35PM

27
#106 - rr / @rodgeur31

10/27/2019 at 11:03PM

27
#107 - Isaak Meier / @IsaakMeier

12/12/2019 at 03:12AM

28
#108 - Titouan Teyssier / @TitouanT_

09/16/2019 at 04:23PM

28
#109 - Daniel Steinberg / @dstein64

09/17/2019 at 04:14AM

28
#110 - Miko / @_m_ik_o_

09/24/2019 at 06:25PM

28
#111 - Dax / @zacoxi

10/11/2019 at 02:00AM

28
#112 - vicver09 / @vicver091

10/25/2019 at 04:07AM

28
#113 - Kevin Yokley / @kyokley19

11/03/2019 at 05:28PM

28
#114 - bassnecter / @lothedr

11/25/2019 at 11:22AM

28
#115 - JimmyGymglish / @JGymglish

01/02/2020 at 11:27AM

28
#116 - Halfdan S. Bechmann / @HalfdanIsLame

01/15/2020 at 03:58PM

28
#117 - Sean Dewar / @seandewar

03/13/2020 at 06:27PM

28
#118 - volandkit / @volandkit

04/20/2020 at 09:17PM

28
#119 - Zachary Lee / @abstractlyZach

04/25/2020 at 07:00PM

29
#120 - theBecwar / @thebecwar

09/16/2019 at 10:20PM