The Gnats bug tracker has a command (edit-pr) that opens a ticket in $EDITOR. My $EDITOR is VIM, and when this command opens the ticket in $EDITOR, I'd like to automatically perform some scripted edits without having to make any additional keystrokes.
Is there a way to write a VIM script that can be run non-interactively like this?