aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/vim-options.vim18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index f24d7d8..45106b9 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -417,3 +417,21 @@ if !empty(glob($EditorDir.'plugged/bullets.vim/plugin/bullets.vim'))
\]
endif
"-----------------------------------------------------------------------------------------------------------------------
+
+
+
+"-----------------------------------------------------------------------------------------------------------------------
+" RG Searching
+"-----------------------------------------------------------------------------------------------------------------------
+if !empty(glob($EditorDir.'plugged/vim-ripgrep/plugin/vim-ripgrep.vim'))
+ nnoremap <leader>/ :call RgSearch()<CR><c-w><c-p>
+ noremap <leader>ea :Rg <cword><CR><c-w><c-p>
+ function! RgSearch()
+ call inputsave()
+ let term = input('Search: ')
+ call inputrestore()
+ if !empty(term)
+ execute "Rg! " . term
+ endif
+ endfunction
+endif