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 9v006661427f00000000027a

Case matching substitution

Swap every "lorem" for "ipsum", keeping the letter cases the same.

Start file
lorem OeMRL elMro roLME eMLOR OMerl lROem LmORe rLeOm eMrOL ermOL OelmR lEOmr
oLeRM mLroe Rmeol LmeOr lmRoe oEmRl EmoLR eomLR roleM MeLro RMoeL LOEMR reLOm
LEoMR oLrEM Lmore emLRO moReL lomre MeOrL erolM ErOlM OERml lrmeo mEoLR rlmoe
EMloR ORmlE lorem LorEm LoRem LOrem ReolM rOmle lErMO OLerM ERmLo emOLR ROEMl
ElOmr mROLE LOREM LOreM LORem LOrEm MROlE reoLm MREOL MRolE MroLE ORMLE lOmre
elrMO RoMEL lorEM loReM loREm lOreM RlmOE Rlmoe rLOEm oLemR OrLMe OlrMe ELmoR
mLrOE RmOeL loREM lOrEM lOReM lOREm OlRME erMOl MrlOE mLoEr ORLME ELMRo Lorme
mEoRl MolrE OMErL MElrO RMOLe romLE lermO OLmEr Melor LreMo EoRml lmEOr mlEOr
rmoeL MRelO rolem ERMol rMeol LeMRo mlero LoreM lORem loreM lorEm EroML OEMlR
EMRoL lMeRo eLmrO lorMe ReoMl rlmOE LMOrE LoReM LoREm lOrem Lorem oRmlE ermLo
eMrLo RmoLE mRLoE RMelO eorLm OeRMl lOemR lOrEm LoREM LOrEM LOReM rmoLE OMRel
MrLoe meLoR MEoLR MOrLE ROMel rmlEo EmoRL LorEM loRem lOREM LOREm omREL ROmlE
MlRoe oRMEl lrmEO roMlE RLEmo roMEl EoLmR mReoL ROlEM EmroL moleR ErMLo leroM
OEmRl lemor eRlMO LmorE RelmO MEolR LMeOR LMOre RLeom erLOm ErLOM ELOmr EORmL
EOrlM emOrL leomR LMroE LOMRe EoMlR lEomr mReLo rEoml MelRO RmlEO eRmLo loREM
End file
ipsum OeMRL elMro roLME eMLOR OMerl lROem LmORe rLeOm eMrOL ermOL OelmR lEOmr
oLeRM mLroe Rmeol LmeOr lmRoe oEmRl EmoLR eomLR roleM MeLro RMoeL LOEMR reLOm
LEoMR oLrEM Lmore emLRO moReL lomre MeOrL erolM ErOlM OERml lrmeo mEoLR rlmoe
EMloR ORmlE ipsum IpsUm IpSum IPsum ReolM rOmle lErMO OLerM ERmLo emOLR ROEMl
ElOmr mROLE IPSUM IPsuM IPSum IPsUm MROlE reoLm MREOL MRolE MroLE ORMLE lOmre
elrMO RoMEL ipsUM ipSuM ipSUm iPsuM RlmOE Rlmoe rLOEm oLemR OrLMe OlrMe ELmoR
mLrOE RmOeL ipSUM iPsUM iPSuM iPSUm OlRME erMOl MrlOE mLoEr ORLME ELMRo Lorme
mEoRl MolrE OMErL MElrO RMOLe romLE lermO OLmEr Melor LreMo EoRml lmEOr mlEOr
rmoeL MRelO rolem ERMol rMeol LeMRo mlero IpsuM iPSum ipsuM ipsUm EroML OEMlR
EMRoL lMeRo eLmrO lorMe ReoMl rlmOE LMOrE IpSuM IpSUm iPsum Ipsum oRmlE ermLo
eMrLo RmoLE mRLoE RMelO eorLm OeRMl lOemR iPsUm IpSUM IPsUM IPSuM rmoLE OMRel
MrLoe meLoR MEoLR MOrLE ROMel rmlEo EmoRL IpsUM ipSum iPSUM IPSUm omREL ROmlE
MlRoe oRMEl lrmEO roMlE RLEmo roMEl EoLmR mReoL ROlEM EmroL moleR ErMLo leroM
OEmRl lemor eRlMO LmorE RelmO MEolR LMeOR LMOre RLeom erLOm ErLOM ELOmr EORmL
EOrlM emOrL leomR LMroE LOMRe EoMlR lEomr mReLo rEoml MelRO RmlEO eRmLo ipSUM

View Diff

1c1
< lorem OeMRL elMro roLME eMLOR OMerl lROem LmORe rLeOm eMrOL ermOL OelmR lEOmr
---
> ipsum OeMRL elMro roLME eMLOR OMerl lROem LmORe rLeOm eMrOL ermOL OelmR lEOmr
4,7c4,7
< EMloR ORmlE lorem LorEm LoRem LOrem ReolM rOmle lErMO OLerM ERmLo emOLR ROEMl
< ElOmr mROLE LOREM LOreM LORem LOrEm MROlE reoLm MREOL MRolE MroLE ORMLE lOmre
< elrMO RoMEL lorEM loReM loREm lOreM RlmOE Rlmoe rLOEm oLemR OrLMe OlrMe ELmoR
< mLrOE RmOeL loREM lOrEM lOReM lOREm OlRME erMOl MrlOE mLoEr ORLME ELMRo Lorme
---
> EMloR ORmlE ipsum IpsUm IpSum IPsum ReolM rOmle lErMO OLerM ERmLo emOLR ROEMl
> ElOmr mROLE IPSUM IPsuM IPSum IPsUm MROlE reoLm MREOL MRolE MroLE ORMLE lOmre
> elrMO RoMEL ipsUM ipSuM ipSUm iPsuM RlmOE Rlmoe rLOEm oLemR OrLMe OlrMe ELmoR
> mLrOE RmOeL ipSUM iPsUM iPSuM iPSUm OlRME erMOl MrlOE mLoEr ORLME ELMRo Lorme
9,12c9,12
< rmoeL MRelO rolem ERMol rMeol LeMRo mlero LoreM lORem loreM lorEm EroML OEMlR
< EMRoL lMeRo eLmrO lorMe ReoMl rlmOE LMOrE LoReM LoREm lOrem Lorem oRmlE ermLo
< eMrLo RmoLE mRLoE RMelO eorLm OeRMl lOemR lOrEm LoREM LOrEM LOReM rmoLE OMRel
< MrLoe meLoR MEoLR MOrLE ROMel rmlEo EmoRL LorEM loRem lOREM LOREm omREL ROmlE
---
> rmoeL MRelO rolem ERMol rMeol LeMRo mlero IpsuM iPSum ipsuM ipsUm EroML OEMlR
> EMRoL lMeRo eLmrO lorMe ReoMl rlmOE LMOrE IpSuM IpSUm iPsum Ipsum oRmlE ermLo
> eMrLo RmoLE mRLoE RMelO eorLm OeRMl lOemR iPsUm IpSUM IPsUM IPSuM rmoLE OMRel
> MrLoe meLoR MEoLR MOrLE ROMel rmlEo EmoRL IpsUM ipSum iPSUM IPSUm omREL ROmlE
15c15
< EOrlM emOrL leomR LMroE LOMRe EoMlR lEomr mReLo rEoml MelRO RmlEO eRmLo loREM
---
> EOrlM emOrL leomR LMroE LOMRe EoMlR lEomr mReLo rEoml MelRO RmlEO eRmLo ipSUM

Solutions by @valacar:

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @maharba6

14 active golfers, 45 entries

Solutions by @valacar:
108
#12 - Valacar / @valacar

06/08/2024 at 10:17PM