2

I have a custom function and mapping:

nmap <C-m> :MyMake<CR>

This works as intendeded, the correct function is called etc. But it creates another mapping, running :nmap shows that CR is now mapped to :MyMake <CR> as well.

Any ideas on why this is?

statox
  • 49,782
  • 19
  • 148
  • 225
flukus
  • 275
  • 1
  • 4

1 Answers1

3

<CR> stands for carriage return, and depending on your terminal settings, CtrlM gets you a carriage return. Consider using another key combination. See also:

muru
  • 24,838
  • 8
  • 82
  • 143