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

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.



Solution 1:[1]

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

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jpm