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

63 active golfers, 235 entries

Leaderboard (lowest score wins):
21
#31 - Paul McDowell / @191_paul

05/04/2021 at 01:45AM

21
#32 - roudens / @roudens2

05/08/2021 at 02:02PM

21
#33 - Ray Dennis / @raysden

05/20/2021 at 05:02PM

24
#34 - Martin Bielik / @mabielik

08/29/2020 at 03:07PM

25
#35 - mocihan / @mocihan

07/01/2020 at 07:21AM

26
#36 - RockerZZY / @rocker_zzy

06/07/2020 at 12:59PM

26
#37 - loupiot.veloce / @LoupiotVeloce

06/09/2020 at 05:30PM

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

06/16/2020 at 07:59AM

26
#39 - Brennan Barker / @BrennanJBarker

07/06/2020 at 02:21PM

29
#40 - Ben Simmons / @Simmons_Ben

06/03/2020 at 03:01PM

29
#41 - ytrxc38754975 / @royaso

05/22/2021 at 05:31AM

31
#42 - Saki Gw / @Sakigw

06/02/2020 at 11:08AM

31
#43 - Golf Gopher / @GolfGopher3

08/17/2020 at 02:18PM

32
#44 - Mike Harris / @MikeMJHarris

06/02/2020 at 11:09AM

32
#45 - Seve / @Seve_py

06/02/2020 at 06:41PM

32
#46 - Yannick / @Yannick88147038

06/07/2020 at 04:17PM

33
#47 - Martin Kauppinen / @MartinKauppinen

08/16/2020 at 01:42PM

35
#48 - betmaster / @betmstr

06/03/2020 at 12:33PM

35
#49 - grsh / @girish_i_am

05/28/2021 at 12:08PM

36
#50 - TimMcGuire / @mcguire

06/13/2020 at 02:36PM

49
#51 - floyd / @floyd10086

06/03/2020 at 10:39AM

49
#52 - Federico Capoani / @fcapoani

06/10/2021 at 12:52PM

53
#53 - vito / @vito49999722

08/01/2020 at 09:53AM

56
#54 - Super User / @WayanLW

06/18/2020 at 08:31PM

58
#55 - Christophe Robillard / @krichtof

06/19/2020 at 02:44PM

63
#56 - ArtemisZX / @ArtemisCZX

02/14/2021 at 09:56AM

64
#57 - Tzero Ocne / @TzeroOcne

06/06/2020 at 12:11AM

66
#58 - Alek Mugnozzo / @mugnozzo

06/02/2020 at 10:19AM

81
#59 - Ernesto Fornaciari / @ernesto11a

03/30/2021 at 10:04AM

83
#60 - Mobius / @ManiacalMobius

05/17/2021 at 11:33AM