I would like to use substitution in Vim to do unindentation manually (instead of doing <)
So I do this:
:%s/^(^I)?//g
but it does not find the pattern. what am i doing wrong?
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.
Vim does not understand the Perl-ish regexp syntax that you seem to use. It must be:
The
(...)is not necessary, and must be written as\(...\). Instead of\t, you could also press Ctrl + V Tab, or use the general atom for whitespace\s.