Is it possible to show/hide all matching lines in vi or vim? Not highlight but just show only that lines.
For example I have a text with ERROR word. How to show only lines containing ERROR and how to show only lines without ERROR ?
Is there a solution without deleting all matching lines and than just undoing this?