vimvim-pluginfzf

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

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

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