From 0731632c07ea8b3d73ae1e4de62eed7a4b4bed13 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Sat, 19 Feb 2022 00:04:18 -0500 Subject: [PATCH] Allow hyphens in vim ripgrep search --- vimrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 3ae6f99..e767a5c 100644 --- a/vimrc +++ b/vimrc @@ -198,6 +198,7 @@ endif Plug 'tpope/vim-markdown' " Markdown Plug 'bfrg/vim-cpp-modern' " C/C++ +Plug 'rluba/jai.vim' " JAI Plug 'vim-ruby/vim-ruby' " Ruby Plug 'fatih/vim-go' " Go Plug 'rust-lang/rust.vim' " Rust @@ -1191,7 +1192,7 @@ function! Search(case_sensitive, search_args) let l:rg_args .= " --ignore-case" endif - exec 'Rg ' . l:rg_args . ' "' . l:term . '"' + exec 'Rg ' . l:rg_args . ' -e "' . l:term . '"' endfunction " Case insensitive