Supercharge Vim with Fzf and Ripgrep
Otis Wright
2169

Hello Otis,

thank you for sharing these tips.

I have a few questions:

  1. the last command ( :Find ) is really interesting. I don’t really know vimscript but I was wondering if there’s a way to make it so that if no argument is specified, it will pass “current word under cursor” as search argument to ripgrep? FWIW I’ve been using https://github.com/jremmen/vim-ripgrep which implements this mode and it’s really convenient, but it just uses the vim quickfix list to show the results, instead of using fzf (i think fzf integration is probably out of the scope for that project)
  2. do you know if it’s possible to, given a quickfix list (which may come from any plugin), to use fzf to navigate/search through it and select a specific entry?

cheers!

PS: NZ is an amazing place :-)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.