DEV Community

loading...

So, you want to call a program from vim?

fernand0 profile image Fernando Tricas García ・1 min read

Sometimes I'm editing a file and I need some part of the results of executing some program:

 [myMachine] > ~/somePath/someProgram someArgument | tee /somePlace
Enter fullscreen mode Exit fullscreen mode

In How do I run a C program from VIM? they tell us:

:!~/somePath/someProgram someArgument | tee /somePlace
Enter fullscreen mode Exit fullscreen mode

And it works.

Discussion (0)

pic
Editor guide