pipe shell output to vim

C++
ls -la | vim -
or
vim <(ls -la)
Source

Also in C++: