I want to search a pattern in vim such that if a pattern appears multiple times in a line then it should search that pattern only 1 times in that line and after it match next line.
Is there any way to do it?
Thanks,
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.
You can follow your pattern with
.*which will cause the pattern to match the remainder of a line where it is found. The search for the next pattern starts after the end of the last found pattern.