I have two separate instances of Vim. I would like to configure my system so that when searching for something in one Vim (using / , ? , * Or # ), then press n or n in another Vim, it searches for the same something in the second Vim. I am running Ubuntu.
I already use the main system buffer for things that jerk in vim using set clipboard=unnamed in my .vimrc file.
Research so far
The xsel command-line tool allows me to access three different clipboards in Ubuntu: the main clipboard (used when you select text and click in the middle click), the clipboard clipboard (used for Ctrl + C, Ctrl + V and etc.)., and a secondary clipboard (which does not seem to be used). My thought is that Vim uses xsel to set the secondary clipboard when / , are used ? , * or # , and use xsel to access the same buffer when n or n .
source share