This question already has an answer here:

I've mapped control-m to start the Syntastic check mode (Active/Passive)

nnoremap <c-m> :SyntasticToggleMode<Cr>

But in normal mode, when I tap the return key, it also toggles the mode. When removing the mapping line above, the problem is off. Any clue of that?


marked as duplicate by statox Jan 18 '18 at 10:34

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    The keycode of the return key is ^M just like <c-m> See the Remember that some key combinations are equivalent in the duplicate question. – statox Jan 18 '18 at 10:36
  • 1
    For more information on why CTRL-M and Return equivalent, see Terminals are Weird, and if you're wondering why CTRL-M and Return are still equivalent, see this discussion on the vim_dev list. – Rich Jan 18 '18 at 10:52

Browse other questions tagged or ask your own question.