Long command output is annoying to read in a terminal. A pager helps, but sometimes I want to search with real regular expressions, delete the boring lines and keep the rest. For that, the output can go straight into Vim.
find . -name "*.conf" | vim -
The dash tells Vim to start a new buffer filled with whatever arrives on standard input. This is described in :help -, which uses the same find example. The buffer has no file name, so you can use :g/pattern/d to remove lines, :sort u to tidy the list, and :w result.txt when you want to keep it.
Vim reads its normal commands from the terminal’s error stream in this mode, so keys keep working while the data comes from the pipe.
One caveat: Vim marks the buffer as modified, so :q complains and you need :q!. The help text gives a way to avoid that. Put this in your vimrc:
au StdinReadPost * set nomodified
Another thing to know is that the pipe is read to the end before you can type, so a command that never finishes, like tail -f, makes Vim wait forever.
Further reading: Vim help: starting, –
Going deeper: Guide: advanced tmux, a config that grows with you, formats, layouts and more