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
#1 - Jon Krause / @jkrause314

06/02/2020 at 03:32PM

21
#2 - Jan Bundesmann / @janbundesmann

06/02/2020 at 04:13PM

21
#3 - せいほう / @FICSQF

06/02/2020 at 04:29PM

21
#4 - Luke Parsons / @lukeparsons

06/02/2020 at 04:46PM

21
#5 - Jonáš Šerých / @serycjon

06/02/2020 at 05:32PM

21
#6 - John Braxler / @braxler

06/02/2020 at 06:53PM

21
#7 - Ryan McNamara / @MadDogMcNamara

06/03/2020 at 03:01PM

21
#8 - Gabriel Siqueira / @gabrielhsiq

06/03/2020 at 07:24PM

21
#9 - Valdimar / @genkobar

06/04/2020 at 01:23AM

21
#10 - "Smylers" / @Smylers2

06/04/2020 at 10:03PM

21
#11 - Frank Malone / @FrankMa00268686

06/05/2020 at 06:42AM

21
#12 - Finlay McAfee / @finsqm

06/05/2020 at 03:11PM

21
#13 - speisz / @speiszc

06/09/2020 at 09:24PM

21
#14 - Dirty Harry / @TateDirty

06/11/2020 at 08:03PM

21
#15 - Jake / @Jake88567157

06/12/2020 at 03:12PM

21
#16 - Robberechts Arne / @ArneRobberechts

06/13/2020 at 02:22PM

21
#17 - nihilistCookie / @NihilistCookie

06/14/2020 at 05:00PM

21
#18 - Chris AtLee / @chrisatlee

06/21/2020 at 04:06PM

21
#19 - Bob / @Bob75461026

07/17/2020 at 06:27PM

21
#20 - Kaustubh Murumkar / @k_austub_h

09/07/2020 at 07:14AM

21
#21 - MySelf / @okmslf

10/25/2020 at 03:52PM

21
#22 - hepebexè / @hepebexe

12/20/2020 at 08:04PM

21
#23 - Jung Yeon Park / @park_jungy

01/14/2021 at 03:50PM

21
#24 - A A A / @37fatos

01/17/2021 at 07:15PM

21
#25 - Jianfeng / @Jianfen22425058

02/05/2021 at 01:54AM

21
#26 - hamb / @hamb88140219

02/21/2021 at 05:40PM

21
#27 - pikjes / @pikjes2

03/21/2021 at 04:26PM

21
#28 - Nick Anishenko / @NAnishenko

03/30/2021 at 06:44PM

21
#29 - Neal / @NealLai1

04/29/2021 at 03:18PM

21
#30 - Paul McDowell / @191_paul

05/04/2021 at 01:45AM