ThePrimeagen / vim-be-good

vim-be-good is a nvim plugin designed to make you better at Vim Movements.
3.14k stars 111 forks source link

Idea: Substitute words/terms on file and/or across multiple files #9

Open henryoliver opened 4 years ago

henryoliver commented 4 years ago

One of slowest things you can do in vim is to substitute words/terms/suffix/prefix {pattern} on a file and/or across multiple files. A game that challenges users to apply many substitute techniques could be something interesting, specially when you need to use expressions and flags.

Thanks @ThePrimeagen for your awesome work!

ThePrimeagen commented 4 years ago

Very neet. I like this idea. Just so we are not thinking of two different things could you post an example of start/end state?

Btw, really appreciate the contributions

henryoliver commented 4 years ago

User are giving random challenges to complete, something like:

The Mission Impossible Game

Mission 1: replace 'HeLlO' to 'wOrLd' in this file. You have 10 seconds to accomplish it. This tape/disc will self-destruct in five/ten seconds.

lpanebr commented 4 years ago

this is also interesting.

the difficulty levels could go from simple to more complex replaces that require regex and working on plain and markup text..

Change all ship prefixes from 'USS' to 'VBG':

Start state:

USS Stargazer - NCC-2893 - Jean-Luc Picard's first command. Abandoned following the Battle of Maxia, later returned to Starfleet.

USS Bradbury - NX-72307 - Scheduled to transport Wesley Crusher to Starfleet Academy and undergoes warp drive performance tests.

USS Voyager - NCC-74656 - Primary setting of Star Trek: Voyager. Commanded by Captain Kathryn Janeway.

USS Reliant - NCC-1864 - Ship on which Pavel Chekov serves as first officer. Assigned to Project Genesis and later hijacked by Khan Noonien Singh. Destroyed by Genesis Device detonation.

USS Farragut - NCC-1647 - Ship on which James Kirk served as a phaser station operator. Attacked by the Dikironium Cloud Creature, killing half the crew. ad. 

End state:

VBG Stargazer - NCC-2893 - Jean-Luc Picard's first command. Abandoned following the Battle of Maxia, later returned to Starfleet.

VBG Bradbury - NX-72307 - Scheduled to transport Wesley Crusher to Starfleet Academy and undergoes warp drive performance tests.

VBG Voyager - NCC-74656 - Primary setting of Star Trek: Voyager. Commanded by Captain Kathryn Janeway.

VBG Reliant - NCC-1864 - Ship on which Pavel Chekov serves as first officer. Assigned to Project Genesis and later hijacked by Khan Noonien Singh. Destroyed by Genesis Device detonation.

VBG Farragut - NCC-1647 - Ship on which James Kirk served as a phaser station operator. Attacked by the Dikironium Cloud Creature, killing half the crew. ad. 

text source: https://vlad-saling.github.io/star-trek-ipsum/