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

Capitalize the Names

I want to capitalize the names in quotes, but just the people's names, not the file names.

Start file
The first name is "JOHN DOE" and its file is "JOHN_DOE.file"
The second name is "JANE DOE" and its file is "JANE_DOE.file"
The third name is "JAMES TIBERIUS KIRK" and its file is "JAMES_TIBERIUS_KIRK.file"
The fourth name is "SPOCK" and its file is "SPOCK.file"
The fifth name is "JEAN-LUC PICARD" and its file is "JEAN_LUC_PICARD.file"
The sixth name is "EUGENE WESLEY RODDENBERRY" and its file is "EUGENE_WESLEY_RODDENBERRY.file"
The seventh name is "WILLIAM NELSON JOY" and its file is "WILLIAM_NELSON_JOY.file"
The last name is "BRAM MOOLENAAR" ind its file is "BRAM_MOOLENAAR.file"
End file
The first name is "John Doe" and its file is "JOHN_DOE.file"
The second name is "Jane Doe" and its file is "JANE_DOE.file"
The third name is "James Tiberius Kirk" and its file is "JAMES_TIBERIUS_KIRK.file"
The fourth name is "Spock" and its file is "SPOCK.file"
The fifth name is "Jean-Luc Picard" and its file is "JEAN_LUC_PICARD.file"
The sixth name is "Eugene Wesley Roddenberry" and its file is "EUGENE_WESLEY_RODDENBERRY.file"
The seventh name is "William Nelson Joy" and its file is "WILLIAM_NELSON_JOY.file"
The last name is "Bram Moolenaar" ind its file is "BRAM_MOOLENAAR.file"

View Diff

1,8c1,8
< The first name is "JOHN DOE" and its file is "JOHN_DOE.file"
< The second name is "JANE DOE" and its file is "JANE_DOE.file"
< The third name is "JAMES TIBERIUS KIRK" and its file is "JAMES_TIBERIUS_KIRK.file"
< The fourth name is "SPOCK" and its file is "SPOCK.file"
< The fifth name is "JEAN-LUC PICARD" and its file is "JEAN_LUC_PICARD.file"
< The sixth name is "EUGENE WESLEY RODDENBERRY" and its file is "EUGENE_WESLEY_RODDENBERRY.file"
< The seventh name is "WILLIAM NELSON JOY" and its file is "WILLIAM_NELSON_JOY.file"
< The last name is "BRAM MOOLENAAR" ind its file is "BRAM_MOOLENAAR.file"
---
> The first name is "John Doe" and its file is "JOHN_DOE.file"
> The second name is "Jane Doe" and its file is "JANE_DOE.file"
> The third name is "James Tiberius Kirk" and its file is "JAMES_TIBERIUS_KIRK.file"
> The fourth name is "Spock" and its file is "SPOCK.file"
> The fifth name is "Jean-Luc Picard" and its file is "JEAN_LUC_PICARD.file"
> The sixth name is "Eugene Wesley Roddenberry" and its file is "EUGENE_WESLEY_RODDENBERRY.file"
> The seventh name is "William Nelson Joy" and its file is "WILLIAM_NELSON_JOY.file"
> The last name is "Bram Moolenaar" ind its file is "BRAM_MOOLENAAR.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 96 remaining solutions by signing in and submitting your own entry
#97 lionforest / @lionforest12 - Score: 156 - 06/05/20 @ 21:16
f"llg~wwlg~wjhhhhhqalg~wqw@ajbb@aw@aw.jhhhhhhbbb.hkjjwb.llklkll;lhhhhh~khhhjjjklhhhhhhhhhhhhh~kjjhh~llll@aw@ahkjjhbb@aw@aw@w@ajbb@afw<Esc>w@aw@ajbbbb@aw@a:w<CR>:q<CR>

0 comments


Created by: @mugnozzo

97 active golfers, 408 entries

Leaderboard (lowest score wins):
21
#31 - roudens / @roudens2

05/08/2021 at 02:02PM

21
#32 - Ray Dennis / @raysden

05/20/2021 at 05:02PM

21
#33 - Arya Kumar / @SusSquirrel

06/16/2021 at 02:34PM

21
#34 - Andreas Siegrist / @andreaszwei

06/16/2021 at 06:53PM

21
#35 - Georg Bökman / @BokmanGeorg

07/05/2021 at 07:08PM

21
#36 - Roman Privalov / @RomanPrivalov

08/22/2021 at 09:52PM

21
#37 - Miłosz Łakomy / @foobar01123

09/09/2021 at 07:50AM

21
#38 - Danila Kutenin / @Danlark1

09/17/2021 at 02:25PM

21
#39 - ややお / @yayaoh

01/03/2022 at 02:20PM

21
#40 - Sammit / @somemeatjain

02/03/2022 at 04:56PM

21
#41 - russellzhaomao / @russellzhaomao

05/23/2022 at 08:29AM

21
#42 - vimgolfer220902 / @vimgolfer220902

09/02/2022 at 04:59PM

21
#43 - Janzen / @__Coos

10/06/2022 at 12:25PM

21
#44 - 7733865@qq.com / @tjxwg

06/09/2023 at 06:31AM

21
#45 - moh ayaya / @AyayaMoh

08/27/2023 at 09:13PM

21
#46 - Luoyb / @Luoyb

10/26/2023 at 03:18AM

21
#47 - scpchicken / @scpchick

11/08/2023 at 06:51PM

21
#48 - philikarus / @philikarus

02/06/2024 at 03:23PM

21
#49 - Aly Thobani / @alythobani

05/28/2024 at 07:42PM

21
#50 - Peppa Pig / @PeppaPigSg

06/13/2024 at 01:03AM

21
#51 - nickGPT / @nickandbro

08/24/2024 at 06:17AM

24
#52 - Martin Bielik / @mabielik

08/29/2020 at 03:07PM

25
#53 - mocihan / @mocihan

07/01/2020 at 07:21AM

25
#54 - mevmev / @mevmev8

08/18/2021 at 11:12AM

26
#55 - RockerZZY / @rocker_zzy

06/07/2020 at 12:59PM

26
#56 - loupiot.veloce / @LoupiotVeloce

06/09/2020 at 05:30PM

26
#57 - 鏡崎ましろ / @KagamisakiMsr

06/16/2020 at 07:59AM

26
#58 - Brennan Barker / @BrennanJBarker

07/06/2020 at 02:21PM

26
#59 - Deepak Mittal / @dpacmittal

09/30/2021 at 08:24AM

26
#60 - quemeraisc / @quemeraisc

05/18/2022 at 03:18PM