Neovim: Moving selected text to another file selected by fzf

88 Views Asked by At

I find myself selecting text from a vim buffer and appending it to another file. I currently do that by:

  • select the text with Shift + V
  • in commend mode, execute: w >> my_file

This requires that I write the exact filepath to my_file. Instead, I would like to use fzf.vim to fuzzy find the file I am writing into. What is the best way to do this?

I tried the following, but it just append bunch of garbage instead of selected text.

call fzf#run({'sink': 'w>>'})

0

There are 0 best solutions below