From 98b813f72413938d7ae3c808057cc82443da0e0a Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 23 May 2024 14:26:15 +0200 Subject: [PATCH] vim: use rg for search when tag fail --- .vim/plugin/cscope.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.vim/plugin/cscope.vim b/.vim/plugin/cscope.vim index ea64b1f..836d5a2 100644 --- a/.vim/plugin/cscope.vim +++ b/.vim/plugin/cscope.vim @@ -13,8 +13,7 @@ if has("cscope") try execute "tag " . expand("") catch /:E257:/ - execute "normal! gd" - execute "nohlsearch" + execute "Rg " . expand("") endtry endfunction nmap , :call GoToDefinition()