Glad you found a solution. I've just become really accustomed to escaping
the slash so don't even think about it any more.

Salman

On Sun, Oct 30, 2022, 07:39 'Carl Ponder US' via vim_use <
vim_use@googlegroups.com> wrote:

> It looks like this is giving me what I want:
> ```
>
> :nnoremap / :call SlashEscape()<CR>/
> :function SlashEscape()
> :    cnoremap <CR> <C-\>eescape(getcmdline(), '/')<CR><CR>:cunmap
> <lt>CR><CR>
> :endfunction
>
> :nnoremap ? :call QuestionEscape()<CR>?
> :function QuestionEscape()
> :    cnoremap <CR> <C-\>eescape(getcmdline(), '?')<CR><CR>:cunmap
> <lt>CR><CR>
> :endfunction
> ```
> posted here:
> https://github.com/vim/vim/issues/11460
>
> --
> --
> 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/38b347c1-6fc2-45c2-b873-3b6eb8a0b9e3n%40googlegroups.com
> <https://groups.google.com/d/msgid/vim_use/38b347c1-6fc2-45c2-b873-3b6eb8a0b9e3n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
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/CANuxnEf2USDtmQ5e_Kt0k0E8NQDnuAT%2B7%3DM-KX_BnL7O%2Bfc%3D%2BA%40mail.gmail.com.

Reply via email to