So this is in the help page (:h autocmd-events
):
|InsertChange| when typing <Insert> while in Insert or Replace mode
I don't really understand what it means with when typing <Insert>
. So I tried it out by adding this into my init.vim
file:
autocmd InsertChange <buffer> echo "yes"
then I opened a file and typed some random characters but yes
isn't printed out. How is it suppose to work?
EDIT
I also looked into the more detailed description of InsertChange
:
*InsertChange*
InsertChange When typing <Insert> while in Insert or
Replace mode. The |v:insertmode| variable
indicates the new mode.
Be careful not to move the cursor or do
anything else that the user does not expect.
But I still don't understand what <Insert>
is supposed to be.