In vim, how do I map to control-slash? Using :noremap <C-/> :nohlsearch<CR> doesn't work.
Assistant
In Vim (and Neovim), (Ctrl+/) because the terminal often doesn't send a distinct keycode for . Instead, it may send the same keycode as (Ctrl+underscore), or nothing at all, depending on the terminal emulator.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Most terminals don't distinguish between Ctrl+/ and Ctrl+_, so Vim receives the same keycode for both. This is a limitation of how terminals handle key combinations, not Vim itself.
Workaround Options
✅ Option 1: Use <C-_> instead
Try mapping <C-_> instead, which is what most terminals actually send when you press Ctrl+/:
nnoremap <C-_> :nohlsearch<CR>
This works in many terminals (like GNOME Terminal, iTerm2, etc.).
✅ Option 2: Use a terminal-specific mapping
If you're using Neovim in a terminal that supports advanced key reporting (like iTerm2 or Alacritty), you can configure the terminal to send a custom escape sequence for Ctrl+/, and then map that in Neovim.