diff --git a/programs/nvim/plugins/grep-operator.vim b/programs/nvim/plugins/grep-operator.vim deleted file mode 100644 index 6ac7a98..0000000 --- a/programs/nvim/plugins/grep-operator.vim +++ /dev/null @@ -1,23 +0,0 @@ -nnoremap g :set operatorfunc=GrepOperatorg@ -vnoremap g :call GrepOperator(visualmode()) - -nnoremap cj :cnext -nnoremap ck :cprev - -function! s:GrepOperator(type) - let saved_unnamed_register = @@ - - if a:type ==# 'v' - exe "normal! `y" - elseif a:type ==# 'char' - exe "normal! `[v`]y" - else - return - endif - - silent exe ":grep! -R " . shellescape(@@) . " ." - copen - - let @@ = saved_unnamed_register -endfunction -