Your problem is that that you put comments at the end of your lines separated by whitespaces. Vim interprets these whitespaces as part of your commands and mappings.
If you replace:
inoremap ii <esc> " ii to go back into command mode
By
" ii to go back into command mode
inoremap ii <Esc>
You will solve your problem.
As a general rule don't put comments at the end of your lines in your .vimrc