简体   繁体   English

Neovim 上 windows 与 FZF

[英]neovim on windows with FZF

I am using neovim-qt on windows.我在 windows 上使用 neovim-qt。 I have install fzf with help of Scoop package manager on windows.我在 windows 上的 Scoop package 管理器的帮助下安装了 fzf。

All the required plugins for neovim are installed using vim-plug and list under a file called _plugrc. neovim 所需的所有插件都使用 vim-plug 安装,并在名为 _plugrc 的文件下列出。 (Other plugged plug-ins are working without any issue. _plugrc is included in init.vim) (其他插入的插件都可以正常工作。_plugrc 包含在 init.vim 中)

I configured FZF recently.我最近配置了 FZF。 The FZF installation is done using following lines使用以下行完成 FZF 安装

" FZF
Plug 'C:/Apps/Packages/Scoop/apps/fzf/current'
Plug 'junegunn/fzf.vim'

My intention is to use fzf binary on windows along with fzf.vim.我的意图是在 windows 和 fzf.vim 上使用 fzf 二进制文件。 Neovimo issues and error whenever I invoke 'Files' command in neovim.每当我在 neovim 中调用“文件”命令时,Neovimo 都会出现问题和错误。

Error:错误:

Error detected while processing function fzf#vim#files[15]..<SNR>91_fzf[18]..<SNR<91_wrap:
line 12:
E117: Unknown function fzf#wrap
E15: Invalid expression: fzf#2wrap(a:name, opts, a:bang)
line 14:
E121: Undefined variable: wrapped
E15: Invalid expression: wrapped
Error detected while processing function fzf#vim#files[15]..<SNR>91_fzf:
line 18:
E117: Unknow fucntion: fzf#run
E15: Invalid expression: fzf#run(s:wrap(a:name, merged. bang))

I think it is unable to use the scoop install FZF.我认为是无法使用scoop install FZF。 Help me to configure it.帮我配置一下。

Following @filbranden advice, this it what is required:遵循@filbranden 的建议,这是需要的:

  1. Goto C:\Users\YOUR_USER_NAME\scoop\apps\fzf\XXXXX转到C:\Users\YOUR_USER_NAME\scoop\apps\fzf\XXXXX
  2. Create the dir plugin创建目录plugin
  3. Place within it fzf.vim from https://github.com/junegunn/fzf/blob/master/plugin/fzf.vim放入其中fzf.vim来自https://github.com/junegunn/fzf/blob/master/plugin/fzf.ZF898198629BB686F1DFC3D1AC8B13506

BUT!!!但!!! It's much easier to rather just add: Plug 'junegunn/fzf' to your init.vim to plug the above file (ie in addition to Plug 'junegunn/fzf.vim' )更容易添加: Plug 'junegunn/fzf' to your init.vim 以插入上述文件(即除了Plug 'junegunn/fzf.vim'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM