0

If I enter visual mode I can select lines either up xor down, but not both. Is there a way to make vim do both?

I'm particularly interested in this for purposes of searching, entering visual mode, searching again, and then searching in the opposite direction so I can extract a piece of text.

0
3

You can press o while in visual mode to switch to the opposite end of a visual selection, thus using it to switch direction of your highlight.

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