I'm trying to make a change to my VIM plugin to work better with version control systems (VCS).
Up until now, if a user enters a VIM command that would modify a read-only file I simply beep and eat the command.
What I would like to do is let the command go through and have the underlying VCS system prompt the user if the file should be checked out.
This works fine if I attempt to insert some text.
However, if I issue a VIM command, say to delete a line of text, nothing happens. The line is not deleted and the user is not prompted to checkout the file.
The VIM plugin ultimately calls 'editor.getDocument().deleteText(...)
So what in IDEA actually triggers a call to the ModificationAttemptListener in a typical VCS plugin?