Is there a way to copy a word under the cursor and paste it in fzf line search in vim?

422 Views Asked by At

I want to put a word under my cursor like CACHED_VALUE, and I want to put it in fzf line search :Lines or :GFiles, is there a way to achieve this?, because sometimes the variable name is big and difficult to type.

1

There are 1 best solutions below

2
On BEST ANSWER

In general, CTRL+R CTRL+W will insert the word under the cursor.

Check out https://stackoverflow.com/a/628865/4333941