I'm wondering if it is possible to map control + forward-slash in vim. The mapping would be for normal mode if that makes a difference.

I have tried <c-/> but that didn't work.

I also tried looking at the :help keycodes docs but was unable to understand if it was possible.


1 Answer 1


Use <C-_>. For example, to map Ctrl/ to :help,

noremap <C-_> :help<CR>

From :help :map-special-keys,

There are three ways to map a special key:

  1. The Vi-compatible method: Map the key code. Often this is a sequence that starts with <Esc>. To enter a mapping like this you type ":map " and then you have to type CTRL-V before hitting the function key. (...)

If I try :map CtrlVCtrl/, I get the ^_ symbol, indicating that the corresponding map is <C-_>. If you get some other sequence, map that instead.

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.