J
J
JZorkiy2019-07-19 15:30:27
vim
JZorkiy, 2019-07-19 15:30:27

vim (linux). How to direct the output of a command to an open terminal?

From the vim editor, I enter:
:!./my_program
And then the output occurs in vim itself, but it is necessary that the output go through the terminal that is already open. Well, or, in extreme cases, in a new terminal window.
PS Yes, you need it this way, because for further automation of production)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JZorkiy, 2019-07-19
@JZorkiy

I'm sorry, I already figured it out. Decision:

:!gnome-terminal -e "bash -c \"./my_program; exec bash\""

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question