From 468a789dbc4b1928c035d8590895efc533520a27 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 24 Feb 2021 17:07:33 +0100 Subject: Updated file tree to match XDG base directory specification --- grep.vim | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 grep.vim (limited to 'grep.vim') diff --git a/grep.vim b/grep.vim deleted file mode 100644 index 32181f7..0000000 --- a/grep.vim +++ /dev/null @@ -1,23 +0,0 @@ -nnoremap g :set operatorfunc=GrepOpg@ -vnoremap g :call GrepOp(visualmode()) - -function! s:GrepOp(type) - let saved = @@ - - if a:type ==# 'v' - execute "normal! `y" - elseif a:type ==# 'char' - execute "normal! `[v`]y" - else - return - endif - - silent execute "grep! -R " . shellescape(@@) . " ." - silent redraw! - let g:quickfix_is_open = 1 - copen - let @@ = saved -endfunction - -nnoremap gn :cnext -nnoremap gp :cprevious -- cgit