I have a small vim function say myFunc() defined in my .vimrc and have this function mapped to to keyword in normal mode say cl and i am successfully able to call this function whenever i type cl in normal mode, myFunc() is invoked.
Now I want to go one step further, I want this function myFunc automatically called whenever press i to go from normal mode to insert mode in vim
Please suggest how can I achieve that.