I use Vundle, and here are the
relevant lines in my .vimrc to install
fzf.vim:
" If installed using git
set runtimepath+=~/.fzf
" set the runtime path to include Vundle and initialize
set runtimepath+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plugin 'junegunn/fzf.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
And here's a bit of configuration (just how I personally like it):
" when I search for a file, show results in a window at the bottom
let g:fzf_layout = { 'down': '~40%' }
" remove the config for preview window (I prefer vim's default behaviour)
let fzf1 = "--height 80% -m --layout=reverse --marker=o"
let fzf2 = ""
let fzf3 = "--bind ctrl-a:select-all,ctrl-d:deselect-all"
let fzf4 = "--bind ctrl-y:preview-up,ctrl-e:preview-down"
let $FZF_DEFAULT_OPTS = fzf1.' '.fzf2.' '.fzf3.' '.fzf4
~/.vim/myplugs/start/
github.com/junegunn/fzf.vim.git and github.com/junegunn/fzf.git