Solutions were posted on this page https://vim.fandom.com/wiki/Searching_for_expressions_which_include_slashes that, if I read correctly, define a new search-operator that allows the embedded '/' characters. The operator being "S" or "s" or "Ss" or something. Maybe '#' could be re-mapped the same way.
But in my case, I still want to use "/" and "?" as before. I tried using analogous forms to re-map these characters ``` command! -nargs=1 / let @/ = escape(<q-args>, '/')|normal! /<C-R>/<CR> command! -nargs=1 ? let @? = escape(<q-args>, '?')|normal! /<C-R>/<CR> command! -nargs=1 / let @/ = <q-args>|set hlsearch command! -nargs=1 '/' let @/ = <q-args> ``` but they all gave vim-errors. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f1d88ec6-7419-4251-8bb7-acfdeef93125n%40googlegroups.com.