From 91e5cd5405065267ff81509b2d5bcc107ccd8582 Mon Sep 17 00:00:00 2001 From: chawley Date: Tue, 23 Apr 2024 19:20:05 -0400 Subject: [PATCH] Leader-f to fuzzy search word under cursor `-f` to open FZF window with word under cursor pre-populated --- .vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vimrc b/.vimrc index 3312056..0c6c4f6 100644 --- a/.vimrc +++ b/.vimrc @@ -250,6 +250,8 @@ map x q map :Files " g to open FZF Git files map g :GFiles +" Map f to open FZF with word under cursor pre-populated +nnoremap f :call fzf#run(fzf#vim#with_preview(fzf#wrap({'source': 'find . \( -name .git -o -name .stversions \) -prune -o -print -iname "*'.expand("").'*"', 'sink': 'e', 'options': '--query="'.expand("").'"'}))) " --------------------------------------------------------------------------------------------------------------------- " ==> Keymaps: Text bubbling (http://vimcasts.org/episodes/bubbling-text/)