Use case or problem
when I use /fox
in vim mode I expect fox to only match fox not Fox
I think this should also be able to be turned on with using * in normal mode tho less important.
Regex is very powerful and this behavior is very limiting to it’s functionality. Regex is normally case sensitive by default and I think that is a good way of going about it,but I would like to at least have the ability to make it case sensitive.
Proposed solution
- We can add an optional setting to turn off case insensitive by default specifically in vim.
- We can also do this by adding a \C at the start to force regex. So
/\C
IMPORTANT
whatever we implement the functionality should also work for %s/foo/bar/g
replace in vim mode.
so :%s\C/foo/bar/g
Current workaround (optional)
VERY tedious but you can technically do [^A-Za-eg-z0-9\s][^A-Za-np-z0-9\s][^A-Za-wyz0-9\s] this excludes all capitals, spaces, numbers and lowercase letters other then what we want