diff --git a/.vimrc b/.vimrc index b268238..8a3ff40 100644 --- a/.vimrc +++ b/.vimrc @@ -164,11 +164,16 @@ command! -bang -nargs=* Rg \ : fzf#vim#with_preview('right:50%:hidden', '?'), \ 0) +" Files command with preview window +command! -bang -nargs=? -complete=dir FilesPreview + \ call fzf#vim#files(, fzf#vim#with_preview(), 0) + " Simply type ; to search through buffers, leader-o to search through file -" names, \t for tags, \c for (Git) commits and \f to search through contents -" of files +" names, leader-O to search through file names, showing a preview window, +" \t for tags, \c for (Git) commits and \f to search through contents of files nmap ; :Buffers nmap o :Files +nmap O :FilesPreview nmap t :Tags nmap c :Commits nmap f :Find