Specifically, I'm looking to bind the search /\(<<<<\|====\|>>>>\)/ (i.e. "find the next git merge boundary"). Ideally to <C-/> or <A-/>, but that part I'm not picky about.
I have tried
nmap <A-/> /\(<<<<\|====\|>>>>\)/<CR>
nmap <C-/> /\(<<<<\|====\|>>>>\)/<CR>
nmap <C-/> /\(<<<<\|====\|>>>>\)<CR>
nmap <C-/> :/\(<<<<\|====\|>>>>\)/<CR>
None of them work. The two <C-/> did nothing, and the version with <A-/> started a normal search. I also tried with a simpler search (a literal string) to make sure this wasn't a malformed query issue, for most of these cases.
CtrlandAlt. There is at least one answer around here that talks about workarounds for this problem. For example, instead of using<C-/>typeCtrl-Vfollowed byCtrl-/in Insert mode and use whatever the result is as LHS of your mapping. – B Layer Dec 02 '20 at 21:01<C-/>nothing happens for me either. If I change it to<C-l>the mapping works, but it fails to find the search patterns. When I modify it tonmap <C-l> /<<<<\\|====\\|>>>><CR>it works in my test file. – Vee Dec 02 '20 at 21:04Altkey mapping in particular. From this site: How to map Alt key? .. Nice solution for xterm users: Alt key shortcuts not working on gnome terminal with Vim .. A different workaround: How can I map Alt-< or Alt-> – B Layer Dec 02 '20 at 21:21