DEV Community

Fernando Tricas García
Fernando Tricas García

Posted on

So, you want to call a program from vim?

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.

Top comments (0)

ACI image

ACI.dev: Best Open-Source Composio Alternative (AI Agent Tooling)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Star our GitHub!

👋 Kindness is contagious

Explore this insightful post in the vibrant DEV Community. Developers from all walks of life are invited to contribute and elevate our shared know-how.

A simple "thank you" could lift spirits—leave your kudos in the comments!

On DEV, passing on wisdom paves our way and unites us. Enjoyed this piece? A brief note of thanks to the writer goes a long way.

Okay