Somehow when I exit insert mode, the trailing space after my text gets deleted
Have a look at the variable evil-move-cursor-back and evil-move-beyond-eol. May be this could help you.
evil-move-cursor-back
evil-move-beyond-eol
Have a look at the variable
evil-move-cursor-back
andevil-move-beyond-eol
. May be this could help you.