-
-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow pasting from buffer with <c-r> #672
Comments
That would be nice, but it's not possible since fzf is an external program rather than a native Vim plugin so it doesn't have access to Vim registers. |
If you use Neovim or use plain Vim but set up to use the embedded terminal emulator (e.g. |
@junegunn, @dylan-chong - I migrated from CtrlP to fzf and this here is my biggest pain - I am used to pasting some search text in the prompt with |
I hope my suggestion helps at least one of the use cases. fzf supports a
This is what I have in my vimrc, leader-f for FZF and leader-F for FZF pre-filled with the word under cursor:
|
@junegunn neovim has access to system clipboard with |
Adding |
For neovim users:
Now you can press
wich will map The good thing of this solution (in opposite of the solution using |
@tuxflo, Thanks :) For those who don't use registers and wants to use ctrl-v:
|
I couldn't get any of the above working with neovim v0.4.3, but got it working using vnoremap <Leader>F "py:execute ":FZF -q " . getreg("p")<CR> Above yanks the currently selected text to the |
This has stopped working for me recently. tnoremap <S-INSERT> <C-w>"+ This still works in terminal Vim but in gVim now it only inputs
Anyone got it working on gVim? |
Maybe I'm not understanding this question correctly, but it is in fact possible to yank some text into a register and then paste that into the fzf window.
|
You just proposed 4 keyboard steps solution to people who are looking for ctrl-v. That's how people end up migrating to Telescope. |
CTRL-V will naturally paste the content in the system clipboard ( In the year 2022, fzf opens in a terminal buffer both in Vim and Neovim, unless you have configured it to open in a tmux popup (e.g. autocmd! FileType fzf tnoremap <expr> <C-r> getreg(nr2char(getchar())) |
It would be very useful to be able to use
<c-r>x
to paste from bufferx
into the search prompt. This will be useful when:<c-r><c-w>
<c-r>%
The text was updated successfully, but these errors were encountered: