There are basically two types of commands in Vim that can make it go into insert mode:
Commands that simply add something, for example: i , i , a , a (other than using backspace). Or delete a piece of text, for example: c[motion] , C , s , v[motions]s .
I would like to bind the InsertLeave event, but in my code I need to know what type of change it is (insert like i , or change like cw ). Is there any way to find this?
source share