From 169c2e6c541231e4c565983ec55b79dd2b40aad3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Tj=C3=A4der?= <henrik@grepit.se>
Date: Wed, 26 Jan 2022 23:13:45 +0100
Subject: [PATCH] Tune FZF

---
 .vimrc | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/.vimrc b/.vimrc
index 03380de..be133ea 100644
--- a/.vimrc
+++ b/.vimrc
@@ -553,9 +553,7 @@ inoremap <C-G>t <Esc>:CtrlSFToggle<CR>
 
 " Esearch settings
 
-" Use <leader>ff for getting the search input prompt
-
-" Use <c-f><c-f> to start the prompt, use <c-f>iw to pre-fill with the current word
+" Use <c-g><c-g> to start the prompt, use <c-g>iw to pre-fill with the current word
 " or other text-objects. Try <plug>(esearch-exec) to start a search instantly.
 nmap <c-g><c-g> <plug>(esearch)
 map  <c-g>      <plug>(operator-esearch-prefill)
@@ -1071,8 +1069,9 @@ let g:vimtex_quickfix_open_on_warning = 0
 map <C-f> <Esc><Esc>:Files!<CR>
 inoremap <C-f> <Esc><Esc>:Lines!<CR>
 map <C-g> <Esc><Esc>:BCommits!<CR>
-nnoremap <silent> <leader>ff :RG<CR>
-nnoremap <Leader>fw :RG <C-R><C-W><CR>
+nnoremap <silent> <leader>FF :RG<CR>
+nnoremap <silent> <leader>ff :Rg<CR>
+nnoremap <Leader>fw :Rg <C-R><C-W><CR>
 " When inside the fuzzy search, use:
 "<Enter> replace current file
 "<C-t> open in a new tab
@@ -1110,7 +1109,6 @@ let $FZF_DEFAULT_COMMAND='rg --vimgrep --no-heading --color=never --smart-case -
 "command! -bang -nargs=? -complete=dir Files
             "\ call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)
 
-
 "" Get text in files with Rg
 "command! -bang -nargs=* Rg
             "\ call fzf#vim#grep(
-- 
GitLab