From 2ba3fc5be67f00aa43aac025866a0cf953f4b124 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Wed, 13 Apr 2022 22:20:44 +0800 Subject: Implement my grep and find (vim) --- .vim/after/plugin/find.vim | 3 +++ .vim/after/plugin/grep.vim | 1 + 2 files changed, 4 insertions(+) create mode 100644 .vim/after/plugin/find.vim (limited to '.vim/after/plugin') diff --git a/.vim/after/plugin/find.vim b/.vim/after/plugin/find.vim new file mode 100644 index 0000000..55c4fcb --- /dev/null +++ b/.vim/after/plugin/find.vim @@ -0,0 +1,3 @@ +command! -nargs=* Cexpr cexpr system(expand()) +command! -nargs=* -complete=file Find call gxfind#find() + diff --git a/.vim/after/plugin/grep.vim b/.vim/after/plugin/grep.vim index 0720e36..3d80ebb 100644 --- a/.vim/after/plugin/grep.vim +++ b/.vim/after/plugin/grep.vim @@ -4,3 +4,4 @@ if executable('rg') endif nnoremap g :grep! =expand('') +nnoremap fr :grep! -- cgit v1.2.3