Is there any way to use an interactive interpreter as the makeprg
? I want the interpreter to stay interactive after invoking :make
.
For example, if I wanted to invoke python on the current file and stay in interactive mode, I would imagine that :set makeprg=python\ -i\ %
would do what I wanted, the -i
argument telling python to stay in interactive mode after running a script. However if I run a small python script like this vim just prints out the python command prompt (>>>
) and then returns me to the editor.
:make
is going to be the proper fit here. Have you thought about using:terminal
(NeoVim and Vim 8)?:terminal python -i %
does what I want.:make
. In effect I want to run:make
, and if the make command succeeds, run:terminal python -i %
. If:make
does not succeed, do the normal make behavior (quickfix list etc)