historize vim yanks and allow to search and paste from history based on FZF
You need ripgrep (rg) installed.
You also need fzf, which you can install via vimplug:
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Via vimplug:
Plug 'yazgoo/yank-history'
See documentation.
An example of usage is:
nmap <space>h :YankHistoryRgPaste
Just input a pattern to search on vim prompt, then select the yank you want to paste.
If you also want to monitor your X11 system clipboard, you
can use the yank-history rust binary.
Just do cargo install yank-history
.
And run yank-history
.