From f8d8ad6f27439dad94bea54f8d60c7c89f046063 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sun, 17 Mar 2019 12:03:46 +0100 Subject: [PATCH] Search files, showing a preview window --- .vimrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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