:h \V tells me:
Use of "\V" means that in the pattern after it only the backslash and the terminating character (/ or ?) has a special meaning. "very nomagic"
:echo ')' =~# '\V\[)]}>\]'
Will tell me 0. How come so?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.Sign up to join this community
The problem is that you misplaced a slash. This is what it should look like:
:echo ')' =~# '\V\[)\]}>]'
\ is a character collection with
nomagic enabled. Note that it doesn't close with
\]. Including an opening brace inside of the collection needs to be escaped with a slash.