what is exclude regexp pattern in vim

vim

Solution

In vim's syntax, you usually have to escape those brackets. But there's a switch you can use at the beginning of your regex, `\v`, which turns on "very magic" handling so you don't.

It's bad for compatibility to change the default regex syntax, but I prefer not to have to type backslashes all the time. I have these in my .vimrc, which automatically inserts the very-magic switch for me.

" set the "very magic" option in common searches
nnoremap / /\v
vnoremap / /\v
cnoremap s/ s/\v

See `:help \v` for more examples.

Problem

I want to match something but exclude `\t in ruby : `[^\t]` which mean `match anything but`\t` what is it's equivalence in vim ?

Original source