I am currently trying to externally add a new buffer to a vim instance from the command line.
That means I have already opened vim and I modify the files of interest to me.
Then I want to go back to my bash line, so I do Ctrl + z
, which makes my vim task go to the "Stopped" state.
Later I find myself to a completely irrelevant directory, wanting to edit a file. Because I don't want to open a lot of vim instances, I would like to have this added in my previous vim task (short of like most of the non-cli text editors work out there)
I am lazy. I don't want to go back to my vim instance with fg
and do :edit /a/very/long/path/file
I want to do a magic add_buffer_to_vim ./file
and immediately open my previous vim instance with the new buffer loaded and ready to edit.
Also I am running vim in a machine without admin rights, so installing/compiling new vi flavors is not a possibility.
I hope I am not asking for much. Thanks!
:h client-server