Neovim - vim-grepper 没有显示结果

如何解决Neovim - vim-grepper 没有显示结果

我每天都使用 Vim,并使用 vim-grepper (https://github.com/mhinz/vim-grepper) 作为我的 grep 插件。

但从上周开始,它不再起作用了,我所做的每一个请求都导致......没有找到任何东西。

我尝试PlugUpdate,卸载然后重新安装,尝试做一个基本的grep :grep 'my_pattern' /my_project,我什至尝试安装其他grepper插件但到目前为止没有结果......

我不知道是什么原因造成的,因为我很少更新我的 vim 配置文件,而且我还不太擅长接触 vim 的东西,我最近做的唯一一件事是在我的配置文件上source % 但在我没有编辑关于我的 grepper 配置的行。

这是我的配置文件,以防它可以帮助(located at ~/.config/nvim/init.vim) :

if (has("nvim"))
  "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
  let $NVIM_TUI_ENABLE_TRUE_COLOR=1
 endif
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has("termguicolors"))
  set termguicolors
endif
call plug#begin('~/.config/nvim/plugged')
" If installed using git
Plug '~/.fzf'
Plug 'junegunn/fzf.vim'
Plug 'pbogut/fzf-mru.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'bling/vim-bufferline'
Plug 'airblade/vim-gitgutter'
Plug 'severin-lemaignan/vim-minimap'
Plug 'joshdick/onedark.vim'
Plug 'miyakogi/seiya.vim'
Plug 'Yggdroot/indentLine'
Plug 'jlanzarotta/bufexplorer'
Plug 'Shougo/deoplete.nvim',{ 'do': ':UpdateRemotePlugins' }
Plug 'sheerun/vim-polyglot'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'scrooloose/nerdcommenter'
Plug 'tpope/vim-rails'
Plug 'tpope/vim-haml'
Plug 'tpope/vim-vinegar'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-rhubarb'
Plug 'tpope/vim-commentary'
Plug 'AndrewRadev/splitjoin.vim'
Plug 'ecomba/vim-ruby-refactoring'
" Plug 'w0rp/ale'
Plug 'mhinz/vim-grepper'
Plug 'mileszs/ack.vim'
Plug 'drewtempelmeyer/palenight.vim'
Plug 'nono/jquery.vim'
Plug 'wesQ3/vim-windowswap'
Plug 'chrisbra/Recover.vim'
" Plugins will go here in the middle.
call plug#end()
syntax on
set background=dark
"let g:onedark_color_overrides = {"yellow": {"gui": "#FFFF00","cterm": "0","cterm16": "0"}}
"colorscheme onedark
colorscheme palenight 

let g:ruby_path = system('echo $HOME/.rbenv/shims')
"let g:onedark_termcolors=256
let g:seiya_auto_enable=1
let g:seiya_target_groups = has('nvim') ? ['guibg'] : ['ctermbg']
let g:indentLine_char='⎸'
let g:indentLine_color_gui = '#333333'
"let g:indent_guides_enable_on_vim_startup = 1
"let g:indent_guides_auto_colors = 0
"let g:indent_guides_guide_size = 1
"autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd  guibg=black   ctermbg=3
"autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=darkgrey ctermbg=4
filetype on           " Enable filetype detection
filetype indent on    " Enable filetype-specific indenting
filetype plugin on    " Enable filetype-specific plugins

nnoremap <C-p> :FZF<CR>
let g:airline_theme='badwolf'
set number
set cursorline
set tabstop=2 expandtab shiftwidth=2 
set list listchars=tab:»·,trail:·,nbsp:·
"hi cursorline cterm=none term=none
"autocmd WinEnter * setlocal cursorline
"autocmd WinLeave * setlocal nocursorline
"highlight CursorLine guibg=#6699CC ctermbg=234

highlight Cursor guifg=white guibg=black
highlight nCursor guifg=black guibg=#aeee00
highlight iCursor guifg=black guibg=#4bd5ff
highlight vCursor guifg=black guibg=#ffa724
"highlight visual guifg=#141413 guibg=#0a9dff
"highlight visual guifg=white guibg=#0a9dff
highlight visual guifg=white guibg=#4bd5ff
set guicursor=n-v-c:block-Cursor
set guicursor+=i:ver70-iCursor 
set guicursor+=n-c:nCursor 
set guicursor+=v:vCursor 
nnoremap <silent> <esc> :noh<cr><esc>
let mapleader = ";"
nnoremap <Leader>b :BufExplorerHorizontalSplit<CR>:b<Space>
" au FocusLost * silent! wa
highlight minimapHighLight guifg=white guibg=black
let g:minimap_highlight='minimapHighLight'
let g:deoplete#enable_at_startup = 1

" deoplete tab-complete
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
let g:UltiSnipsExpandTrigger="<c-b>"
"let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
nnoremap > v>
nnoremap < v<
vnoremap > >gv
tnoremap <Esc> <C-\><C-n>
vnoremap < <gv
" More natural line movements
nmap j gj
nmap k gk
nmap <Space> /
nmap <C-Space> ?
nmap <C-d> <C-d>zz
nmap <C-u> <C-u>zz

" Easily move between 
" <CR>: close popup and save indent.
"inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
"function! s:my_cr_function() abort
"  return deoplete#close_popup() . "\<CR>"
"endfunction
noremap <Leader>w :w<CR>
noremap <Leader>sp :sp<CR>
noremap <Leader>vsp :vsp<CR>
noremap <Leader>q :q<CR>
noremap <Leader>te :te<CR>
noremap <Leader>gb :Gblame<CR>
noremap <Leader>gw :Gwrite<CR>
" Go to next conflict
noremap <Leader>nc /HEAD<CR>zz
"let g:onedark_terminal_italics = 1
let g:airline#extensions#ale#enabled = 1
"tnoremap <Esc> <C-\><C-n>

" Easier navigation between windows + move out of terminal before switching
" window
" nnoremap <C-k> <C-w>k
" nnoremap <C-j> <C-w>j
" nnoremap <C-h> <C-w>h
" nnoremap <C-l> <C-w>l

" Easier navigation between windows + move out of terminal before switching
" window
tnoremap <C-k> <C-\><C-n><C-w>k
tnoremap <C-j> <C-\><C-n><C-w>j
tnoremap <C-h> <C-\><C-n><C-w>h
tnoremap <C-l> <C-\><C-n><C-w>l

nnoremap <C-k> <C-\><C-n><C-w>k
nnoremap <C-j> <C-\><C-n><C-w>j
nnoremap <C-h> <C-\><C-n><C-w>h
nnoremap <C-l> <C-\><C-n><C-w>l

"More intuitive copy/paste
nnoremap <C-c> "+y
vnoremap <C-c> "+y
nnoremap <C-v> "+p
vnoremap <C-v> "+p
:set inccommand=nosplit
let g:airline#extensions#branch#enabled = 1
let g:NERDSpaceDelims = 1
if executable('ag')
  let g:ackprg = 'ag --vimgrep'
endif
" nmap < [
" nmap > ]
" omap < [
" omap > ]
" xmap < [
" xmap > ]
      " \ 'hl+':     ['fg','Statement'],let g:fzf_action = {
\ 'ctrl-t': 'tab split',\ 'ctrl-x': 'split',\ 'ctrl-v': 'vsplit' }
 let g:fzf_layout = { 'down': '~20%' }    
 let g:fzf_colors =
    \ { 'fg':      ['fg','Normal'],\ 'bg':      ['bg',\ 'hl':      ['fg','Comment'],\ 'hl+':     ['fg','Exception'],\ 'fg+':     ['fg','CursorLine','CursorColumn',\ 'bg+':     ['bg','CursorColumn'],\ 'header':  ['fg',\ 'marker':  ['fg','Keyword'],\ 'info':    ['fg','PreProc'],\ 'border':  ['fg','Ignore'],\ 'pointer': ['fg',\ 'spinner': ['fg','Label'],\ 'prompt':  ['fg','Conditional']}
autocmd! FileType fzf
autocmd  FileType fzf set laststatus=0 noshowmode noruler
  \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
nmap H :FZFMru<CR>
" let g:palenight_terminal_italics=1

syn match pry_hi /.*binding\.pry.*/
hi pry_hi guifg=white guibg=red
" hi Comment ctermfg=145 ctermbg=235 guifg=#697098 guibg=None
hi Comment ctermfg=145 ctermbg=235 guifg=#8790c6 guibg=None
let g:RecoverPlugin_Delete_Unmodified_Swapfile = 1
" vim-grepper config
nnoremap <leader>g :Grepper -query
let g:grepper = { 'next_tool': '<leader>g' }
nmap gs  <plug>(GrepperOperator)
xmap gs  <plug>(GrepperOperator)

" Allow netrw to remove non-empty local directories
"
let g:netrw_localrmdir='rm -r'

" Automatically enter insert mode when moving in terminal
autocmd BufWinEnter,WinEnter term://* startinsert

预先感谢您的帮助!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 &lt;select id=&quot;xxx&quot;&gt; SELECT di.id, di.name, di.work_type, di.updated... &lt;where&gt; &lt;if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 &lt;property name=&quot;dynamic.classpath&quot; value=&quot;tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-