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 215 remaining solutions by signing in and submitting your own entry
#216 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

216 active golfers, 1042 entries

Leaderboard (lowest score wins):
19
#31 - heppen / @heppen_He

01/07/2020 at 01:27PM

19
#32 - mowglian / @mowglian

01/11/2020 at 09:17PM

19
#33 - Tefe / @tefetic

01/24/2020 at 07:16PM

19
#34 - Kyle X. Clark / @KyXr_Clark

02/10/2020 at 08:04PM

19
#35 - jrddp / @jrddp0

02/14/2020 at 05:15AM

19
#36 - howanto / @ho_wan_

02/20/2020 at 11:05AM

19
#37 - countime / @countime1

03/06/2020 at 02:02AM

19
#38 - せいほう / @FICSQF

03/13/2020 at 09:17AM

19
#39 - Daniel Fleischman / @vimgolfdaniel

04/05/2020 at 09:06PM

19
#40 - Arthur Goodman / @ArthurGoodman3

04/30/2020 at 10:45AM

19
#41 - 于吉星 / @fishermryn

05/25/2020 at 09:58AM

19
#42 - Kevin Keefe / @KevinKeefe5

05/26/2020 at 05:18PM

19
#43 - Valdimar / @genkobar

06/04/2020 at 01:36AM

19
#44 - 大矢元海 / @008Genkai

07/12/2020 at 05:18PM

19
#45 - speisz / @speiszc

09/02/2020 at 09:05PM

19
#46 - Ivan Kwong / @IvanKwong5

09/26/2020 at 07:04PM

19
#47 - lamtt77 / @lamtt77

10/10/2020 at 09:48AM

19
#48 - noam teyssier / @noamteyssier

10/15/2020 at 09:14PM

19
#49 - chocolate / @chocola81394123

12/02/2020 at 09:09AM

19
#50 - Jon Krause / @jkrause314

12/15/2020 at 04:27AM

19
#51 - Dax / @zacoxi

12/16/2020 at 04:35AM

19
#52 - Jung Yeon Park / @park_jungy

01/04/2021 at 02:34PM

19
#53 - Matthew Jurenka / @JurenkaMatthew

01/20/2021 at 08:29AM

20
#54 - Saki Gw / @Sakigw

09/17/2019 at 06:55AM

20
#55 - garry quested / @GQuested

09/17/2019 at 08:29AM

20
#56 - EL KESRI Othmane / @KesriOthmane

09/17/2019 at 09:58AM

20
#57 - Tinko Minko / @tandikula

09/17/2019 at 05:12PM

20
#58 - Adam Hartz / @awareofnow

09/18/2019 at 02:29AM

20
#59 - Abner jr / @Abnerjr19

09/18/2019 at 03:50PM

20
#60 - Baine Wedlock / @BaineWedlock

09/19/2019 at 01:23PM