I know how to run shell commands within vim using
:!, but is there a way I can do that from outside, i.e. from bash?
Something along the lines of
vim 'ls -al'. The output of
ls should be in vim and editable.
migrated from stackoverflow.com Jan 16 '13 at 1:31
This question came from our site for professional and enthusiast programmers.
Execute the command the same way you would any command from the command line.
You can use bash process substitution like this:
See "Process Substitution" subsection of the bash manual: