Apr 27, 2026, 18:34

Mon, 27 Apr 2026 18:34:14 +0000
vim, cdo, vi, nvi, nvim, vimwizards, askfedi, hivemind

SOLUTION: @gumnos came up with the idea of piggy-backing :nohl onto control-l for refresh:

nmap <C-L> :nohl<CR><C-L imap <C-L> <Esc>:nohl<CR><C-L>a

Hey #vim wizards,

The number one reason I don't use search more freely when editing is that all the highlights triggers my #CDO a little bit, and :nohl is a little clumsy to type in a hurry.

I wanted to map :nohl to an easy-to-press keybind, like ctrl-/, but I can't seem to get it to work.

Any ideas?

" map Ctrl-/ to :nohl nmap <c-Slash> :nohl<CR> imap <c-Slash> <Esc>:nohl<CR>a