From 0bc76da0c2f61dc196f80161fb7ad2b9701f07b7 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 23 Apr 2018 19:22:34 +0200 Subject: [PATCH] Enhance the ripgrep awesomeness --- .vimrc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index 30ce750..e208041 100644 --- a/.vimrc +++ b/.vimrc @@ -107,11 +107,20 @@ endif " fzf integration for fast fuzzy finding, better and faster than ctrl-p set rtp+=~/workspace/projects/others/fzf Plugin 'junegunn/fzf.vim' + +" :Find term where term is the string you want to search, this will open up a +" window similar to :Files but will only list files that contain the term +" searched +command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape().'| tr -d "\017"', 1, 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 nmap ; :Buffers -nmap f :Files +nmap o :Files nmap t :Tags nmap c :Commits - +nmap f :Find " Web Development/Filetype icons " Needs a font like found at