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.
How to add a string to cursor point of gvim through a shell script
cursor movement;terminal;invocation;gvim;persistent state
Take note of the server name of your GVim window by looking at its title, it should have something like VIM or VIM1.You can then use this command to insert foo at the current cursor position:$ vim --servername VIM --remote-send ifoo<Esc>For more information, see :help clientserver.