VIM Text Substitution trick
Published on 15 Apr 2020
Starting string
mv app/controllers/teams_controller.rb
VIM String Substitution
:%s/\(app.*\)team\(.*$\)/\1team\2 \1organisation\2/gc
Result
mv app/controllers/teams_controller.rb app/controllers/organisations_controller.rb