I'm starting vim in Ex mode, silent mode, on Windows 10, in a standard command prompt window. I'm trying to re-direct stdin from a file. I'm using the terminal version of vim 8.2.2824. It doesn't work, the commands from the file aren't executed. When I kill it with CTRL-C, I get the errors shown.
C:\Users\paulc>vim -e -s <tempsource
^CTerminate batch job (Y/N)? sleep 3
Terminate batch job (Y/N)? sleep 2
Terminate batch job (Y/N)? q
Terminate batch job (Y/N)?
C:\Users\paulc>
tempsource has the three lines:
sleep 3
sleep 2
q
I wait more than 10 seconds before killing it. It doesn't help if the commands are prefixed with :
If someone knows how to get this to work I'd appreciate help.
?
and then 'code'.