Saturday, October 29, 2022

Re: How to incude '/' in search(find) string on the fly

Also, it looks like this approach here
```
cnoremap <expr>  /  getcmdtype() == '/' ? '\/' : '/'
cnoremap <expr>  ?  getcmdtype() == '?' ? '\?' : '?'
```
does the escaping when I type-in the pattern but not when I copy/paste it using the mouse.

--
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/b23bc7b1-e562-418f-af09-12b9baad3877n%40googlegroups.com.

No comments:

Post a Comment