When gvim is opened it saves the cursor position whether it is minimized or not. So I'm curious whether it is possible to add a string starting from the cursor blinking position by running a shell script or through a terminal.
vim -c command lets you specify a command to be executed on the first loaded file.
When last exiting, Vim saved the location of the cursor as the mark named
". The normal-mode command to go to that mark would be '". The ex-command version of that would be
:norm '". Once at that location, to insert the string
hello, you would use
$ vim -c "norm '\"ihello" file.txt