Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' Plug 'stsewd/fzf-checkout.vim' let g:fzf_layout = { 'up': '~90%', 'window': { 'width': 0.8, 'height': 0.8, 'yoffset':0.5, 'xoffset': 0.5 } } let $FZF_DEFAULT_OPTS = '--layout=reverse --info=inline' " Customise the Files command to use ripgrep which respects .gitignore files command! -bang -nargs=? -complete=dir Files \ call fzf#run(fzf#wrap('files', fzf#vim#with_preview({ 'dir': , 'sink': 'e', 'source': 'rg --files --hidden' }), 0)) " Add an AllFiles variation that shows ignored files too command! -bang -nargs=? -complete=dir AllFiles \ call fzf#run(fzf#wrap('allfiles', fzf#vim#with_preview({ 'dir': , 'sink': 'e', 'source': 'rg --files --hidden --no-ignore' }), 0)) nmap f :Files nmap F :AllFiles nmap b :Buffers nmap h :History nmap r :Rg nmap R :Rg nmap gb :GBranches