4

I want to select text from multiple lines up till and including the pattern pattern. When I use v/pattern the text till attern is selected (not including attern). How can I select text including attern?

E.g., when I have the text

yada yada
yada n pattern

and my cursor is at the first y, I am looking for a command to highlight everything.

1 Answer 1

12

Just append /e

to your search pattern.

v/pattern/e

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.