I want to match something but exclude `\t
in ruby : [^\t] which mean match anything but\t`
what is it’s equivalence in vim ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.
See
:help \vfor more examples.