Vim regex search to be case insensitive

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

I’m not sure how to edit but here is clarification for my typos:

  • I would suggest a setting in Obsidian itself to change this behavior for vim users.
  • A simaler setting or the same setting to achieve the same thing for the vim * functionality
  • I also think either doing both the previous and or adding the \C flag option to regex searchs would be a great option to get the same functionality