Banger Vim Motions
Utility
Revert back to saved state with :e! .
Use vertical selection with ctrl+v---
One eye kirby
This is the easiest way to manipulate multiple lines of text with vim motions.
Example
Say you have this in your .envLOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
And you want to turn it intoAPP_LOG_CHANNEL=stack
APP_LOG_STACK=single
APP_LOG_DEPRECATIONS_CHANNEL=null
APP_LOG_LEVEL=debug
Select the lines you want to manipulate
Run :s/(.)= (you might have to \ escape the ( depending on your editor)
Now everything before the = is your capturing group 1. You can have as many capture groups as you want.
Now as part of the same expression you can do APP_\1=
Final expression is :s/(.)=/APP_\1=