After running git rebase -i master
I always wish to write :2,50s/pick/squash/g
in the vim window that opens. Is there a way to automate what will be written to vim?
This answer shows how to write vim commands from shell, but the problem is in my case the git commands open up vim, and it's not in my control.