Can you make a game for practicing regex commands? Like give a set of lines in the code and a set of target lines to transform them into (to be transformed with :%s). Higher difficulties may include multiple lines (for example, if you want to format all of the first variable in a string of comparisons to add a prefix to them), as well as lines that should not be modified (to practice filtering). This could serve as a way to practice macro creation as well, perhaps?
Also, I understand that the scope is growing significantly, but the ability to change languages, or at least language structures (like have an option to use C, JS, or Python, or some other language you feel like is syntactically unique)
Examples of problems:
- If statements (aforementioned "change first/second variable"; replace operator with another operator or comparison function(member of type or external; change an if else chain to a stack of ifs with return statements). This suggestion extends to other loop types (I understand that this is a complex feature request).
- Function refactoring (The parameters of the function have changed/one has been removed, change all calls to match; a named parameter has been refactored, modify all relevant calls)
- Simple Substitution (Replace all function calls of foo to those to bar; function and variable names collide, rename the function to
do_foo while not modifying the variable)
I know it's super complex, but it would be really cool. An alternative to doing this in the VimBeGood echo UI would be to have it generate a file and open it, and have a multi line comment at the top detailing the instructions).
Can you make a game for practicing regex commands? Like give a set of lines in the code and a set of target lines to transform them into (to be transformed with
:%s). Higher difficulties may include multiple lines (for example, if you want to format all of the first variable in a string of comparisons to add a prefix to them), as well as lines that should not be modified (to practice filtering). This could serve as a way to practice macro creation as well, perhaps?Also, I understand that the scope is growing significantly, but the ability to change languages, or at least language structures (like have an option to use C, JS, or Python, or some other language you feel like is syntactically unique)
Examples of problems:
do_foowhile not modifying the variable)I know it's super complex, but it would be really cool. An alternative to doing this in the VimBeGood echo UI would be to have it generate a file and open it, and have a multi line comment at the top detailing the instructions).