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/)