Is it possible to show/hide all matching lines in vi or Vim? Not highlight but just show only those lines.
For example I have a text with word the word ERROR
ERROR
:vimgrep /something/g % | copen works awesome. Also :g//d can be used to delete lines with the pattern
:vimgrep /something/g % | copen
:g//d