<Ctrl-M>
is equivalent to <CR>
First of all, please note that <Ctrl-M>
is equivalent to <CR>
which you might not use in normal mode and therefore is ok for you.
If you use the mapping, you can also press <CR>
in normal mode to trigger make.
If you like to use a different mapping, have a look at the plugin
This plugin provides following mappings
- menter
:Make<CR>
- mspace
:Make<Space>
(enter arguments)
- m!+enter
:Make!
- m? Show
'makeprg'
and the new command :Make
works as follows
*dispatch-:Make*
:Make [arguments] Using the current |:compiler| settings, dispatch a
build in the foreground. Adapter strategies vary, but
the goal is visibility without stealing focus. When
the build is complete, load the results into the
|quickfix| list and call |:cwindow|. This command is
preferred for shorter tasks like "build this file."
:Make! [arguments] Using the current compiler settings, dispatch a build
in the background. Use |:Copen| to load the results.
This command is preferred for longer tasks like "run
the entire test suite."
Note the difference between :copen
and :cwindow
:
*:cw* *:cwindow*
:cw[indow] [height] Open the quickfix window when there are recognized
errors. If the window is already open and there are
no recognized errors, close the window.
*:cope* *:copen* *w:quickfix_title*
:cope[n] [height] Open a window to show the current list of errors.