I'm using evil via spacemacs. When I exit insert state, the cursor moves to the left one character. Why is that? Is it a bug, or is it a feature? Can I turn it off?


"Moving one space left after leaving insert" is the default behavior in Vim, which evil (on top of which spacemacs is built) emulates by default. If you don't like that behavior, you can set (setq evil-move-cursor-back nil).

  • Thank you! Now i see what a dumb question it was. I've checked my .vimrc, and it there is a inoremap <Tab> <Esc>`^ (i remap Esc to Tab). That's why i've never noticed it in Vim! – siphiuel Nov 13 '15 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.