recentpopularlog in

kme : pipeline   10

How do I redirect command output to vim in bash? - Ask Ubuntu


You can use process substitution (this also works with applications that can't read from STDIN):

vim <(ls -la)

Or use vim's function to read from STDIN:

ls -la | vim -

vim  processsubstitution  bash  shell  cli  commandline  shellscripting  pipeline  pipes  solution 
april 2017 by kme
options - Is there some way to echo from terminal into new vim buffer - Vi and Vim Stack Exchange
This is not a duplicate, and the other linked posts do not answer the question asked here.
vim  pipeline  pipe  shellscripting  bash  shell  needshelp 
april 2017 by kme

Copy this bookmark:





to read