Skip to main content
1 of 6
statox
  • 50.6k
  • 19
  • 153
  • 231

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

statox
  • 50.6k
  • 19
  • 153
  • 231