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):
26
#61 - Paul McDowell / @etothepi16

05/22/2024 at 07:52PM

28
#62 - Michael Herring / @mayoroftuesday

12/15/2021 at 04:22PM

29
#63 - Ben Simmons / @Simmons_Ben

06/03/2020 at 03:01PM

29
#64 - ytrxc38754975 / @royaso

05/22/2021 at 05:31AM

31
#65 - Saki Gw / @Sakigw

06/02/2020 at 11:08AM

31
#66 - Golf Gopher / @GolfGopher3

08/17/2020 at 02:18PM

31
#67 - naka / @nak38223985244

11/26/2023 at 12:14PM

31
#68 - Lily / @totallyuniquelily

05/10/2024 at 12:33PM

31
#69 - Elliot Schemmel / @regulated

10/10/2024 at 04:05PM

32
#70 - Mike Harris / @MikeMJHarris

06/02/2020 at 11:09AM

32
#71 - Seve / @Seve_py

06/02/2020 at 06:41PM

32
#72 - Yannick / @Yannick88147038

06/07/2020 at 04:17PM

32
#73 - キムラ・OPEL・ユウジ / @kimurayuuji79

11/11/2022 at 09:45AM

33
#74 - Martin Kauppinen / @MartinKauppinen

08/16/2020 at 01:42PM

34
#75 - Connor / @ronnocthered

08/15/2021 at 03:31AM

34
#76 - WhyIsThisFishInMyEar / @why_ear

11/21/2021 at 01:17AM

34
#77 - Иван / @wansmer

04/21/2023 at 07:14AM

35
#78 - betmaster / @betmstr

06/03/2020 at 12:33PM

35
#79 - grsh / @girish_i_am

05/28/2021 at 12:08PM

36
#80 - TimMcGuire / @mcguire

06/13/2020 at 02:36PM

36
#81 - Steven Fisher / @StevenC_Fisher

09/13/2021 at 07:40PM

49
#82 - floyd / @floyd10086

06/03/2020 at 10:39AM

49
#83 - Federico Capoani / @fcapoani

06/10/2021 at 12:52PM

49
#84 - Ilay Skutelsky / @ISkutelsky

08/02/2022 at 03:47PM

53
#85 - vito / @vito49999722

08/01/2020 at 09:53AM

56
#86 - Super User / @WayanLW

06/18/2020 at 08:31PM

58
#87 - Christophe Robillard / @krichtof

06/19/2020 at 02:44PM

63
#88 - ArtemisZX / @ArtemisCZX

02/14/2021 at 09:56AM

64
#89 - Tzero Ocne / @TzeroOcne

06/06/2020 at 12:11AM

66
#90 - Alek Mugnozzo / @mugnozzo

06/02/2020 at 10:19AM