Running :h ctrl-\ in Vim opens the subsection about the mapping of Ctrl-\e in Cmdline mode to evaluate an expression and to replace the command line with the result.

Is Ctrl-\ used for something in other modes too? (I couldn't find anything about this) Even if it is, why is key sequence to evaluate an expression in Cmdline mode not simply Ctrl-\? Are there other key mappings starting with Ctrl-\ in Cmdline mode? Will there be problems if I do cnoremap <C-\> <C-\>e?

1 Answer 1


:help CTRL-\Ctrl+D will show you all the help topics that contain CTRL-\. As you can see, there are a number of default keybindings that use CTRL-\.

As to whether that will cause problems, well that depends on your definition of problem. :) Do you want to be able to use any of those other commands? If not, then it shouldn't cause a problem.

  • 1
    Indeed, there are two other (strange to use) combinations: c_CTRL-\ CTRL-N and c_CTRL-\ CTRL-G.
    – Alexey
    Oct 31, 2015 at 14:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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