neovim on windows with FZF - vim

I am using neovim-qt on windows. I have install fzf with help of Scoop package manager on windows.
All the required plugins for neovim are installed using vim-plug and list under a file called _plugrc. (Other plugged plug-ins are working without any issue. _plugrc is included in init.vim)
I configured FZF recently. The FZF installation is done using following lines
" 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. Neovimo issues and error whenever I invoke 'Files' command in neovim.
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. Help me to configure it.

Following #filbranden advice, this it what is required:
Goto C:\Users\YOUR_USER_NAME\scoop\apps\fzf\XXXXX
Create the dir plugin
Place within it fzf.vim from https://github.com/junegunn/fzf/blob/master/plugin/fzf.vim
BUT!!! It's much easier to rather just add:
Plug 'junegunn/fzf' to your init.vim to plug the above file (i.e. in addition to Plug 'junegunn/fzf.vim')

Related

vim plugin does not work after migration from Centos6 to Centos7

I have troubles with the vim plugin Oscan after migration from Centos6 to Centos7 on my workstation.
This plugin uses ctags to navigate between symbols and so on.
When I try to use it, it shows the following errors:
[ 0scan ] Vim(help):E149: Sorry, no help for help.txt
Error detected while processing function railmoon#oscan#open:
line 139:
E121: Undefined variable: edit_line_window
line 140:
E121: Undefined variable: s:available_tags_window
line 141:
E121: Undefined variable: s:result_window
Press ENTER or type command to continue
I can't figure out what changed in syntax after migration to Centos7.
What should I change in this plugin to make it workable? Is this problem with the plugin or vim?
This plugin on the official vim site:
https://www.vim.org/scripts/script.php?script_id=2507
Or you can check the same sources here:
https://github.com/nterray/vimfiles/tree/master/.vim/autoload/railmoon

Can not get delimitmate to work in vim

I am trying to use delimitmate plugin but when I run vim I get:
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init..<SNR>26_option_init..<SNR>26_s:
line 1:
E117: Unknown function: delimitMate#Set
E117: Unknown function: delimitMate#Set
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init..<SNR>26_g:
line 1:
E117: Unknown function: delimitMate#Get
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init..<SNR>26_option_init..<SNR>26_s:
line 1:
E117: Unknown function: delimitMate#Set
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init..<SNR>26_g:
line 1:
E117: Unknown function: delimitMate#Get
Error detected while processing function <SNR>26_DelimitMateDo..<SNR>26_init:
line 8:
E712: Argument of filter() must be a List or Dictionary
delimitMate: each member of a pair in delimitMate_matchpairs must be different from each other.
line 11:
E712: Argument of map() must be a List or Dictionary
E714: List required
delimitMate: invalid pairs: 0
What am I messing up?
It looks like you have the ~/.vim/plugin/delimitMate.vim script, but not the corresponding ~/.vim/autoload/delimitMate.vim script. Depending on how you installed the plugin (unpack zip, VimBall, clone repository with Pathogen, install with Vundle etc.), you need to reinstall the entire plugin.
Though small and simple plugins just contain of a single script (to be placed in the plugin/ config subdir), many plugins separate parts of the functionality into modules which are loaded on-demand, improving Vim's footprint and startup time. The module mechanism (introduce with Vim 7.0) is called autoload; cp. :help autoload. Those additional scripts must be placed in the proper autoload/ config subdir for the plugin to work.

Installing Plugins in gvim on Windows 8

I seem to have put the EasyMotion plugin in the correct location, but now there's an error loading it... I downloaded "Lokaltog-vim-easymotion-1.3-0-g667a668.zip" from [here][1].
I had previously put EasyMotion.vim in $HOME/vimfiles/plugin, which was giving the following error message:
>Error detected while processing C:\Users\Willem\vimfiles\plugin\EasyMotion.vim:
>line 24:
>E117: Unknown function: EasyMotion#InitOptions
>line 39:
>E121: Undefined variable: g:EasyMotion_hl_group_target
>E116: Invalid arguments for function EasyMotion#InitHL
>line 40:
>E121: Undefined variable: g:EasyMotion_hl_group_shade
>E116: Invalid arguments for function EasyMotion#InitHL
>line 69:
>E117: Unknown function: EasyMotion#InitMappings
I now realize that there are two files and have gotten it working! As per the first answer, I have now moved autoload/EasyMotion.vim into $HOME/vimfiles/autoload, as well as moving plugin/EasyMotion.vim into $HOME/vimfiles/plugin
It looks like you have forgotten to install everything.
More precisely, the autoload/EasyMotion.vim file is supposed to go in $HOME/vimfiles/autoload/ and the doc/easymotion.txt file is supposed to go in $HOME/vimfiles/doc/.
You might want to use pathogen to help you with your plugins.
Once you have installed pathogen and activated it in your _vimrc, installing a plugin can be as simple as unpacking it in $HOME\vimfiles\bundle and restarting vim.

fuzzyfinder not working in gvim

I found out about fuzzyfinder yesterday and tried installing it. Then found out I needed L9 since that is a prerequisite for fuzzyfinder.
I am getting the following errors when running gvim:
Error detected while processing /usr/share/vim/vim72/plugin/fuf.vim:
line 13:
***** L9 library must be installed! *****
Error detected while processing /usr/share/vim/vim72/plugin/l9.vim:
line 8:
E117: Unknown function: l9#guardScriptLoading
E15: Invalid expression: !l9#guardScriptLoading(expand('<sfile>:p'), 702, 0, [])
line 16:
E117: Unknown function: l9#defineVariableDefault
I've put fuf.vim and l9.vim into my plugin folder. I tried putting them in autoload folder as well but that fetches even more errors.
My version is: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 16 2010 12:40:58)
Googling did not work since question from one mailing list is spread of so many other links and the answer is nowhere to be found.
Both fuzzyfinder and l9 plugins contain more then one file. They must not work if you have thrown away most of them (and you did if you put just fuf.vim and l9.vim). You are supposed to unpack plugin archives into ~/.vim.
By the way, you may try to use vim-addon-manager. Copy the following into your shell and you should get FuzzyFinder successfully installed with an advantage of having each plugin in a separate directory and easier installation of plugins with dependencies in future:
mkdir -p ~/.vam
git clone git://github.com/MarcWeber/vim-addon-manager ~/.vam/vim-addon-manager
echo 'set rtp+=~/.vam/vim-addon-manager' >> ~/.vimrc
echo 'call vam#ActivateAddons(["FuzzyFinder"])' >> ~/.vimrc
vim # Now answer yes on all queries
While this is correct the VAM team proposes reading the official documentation about how to install VAM which can be found at github.com/MarcWeber/vim-addon-manager then cd into the doc directory.
We want to be fair and say that VAM is only one solution. Vundle, Pathogen, ... and some more exist (See related work section in docs of VAM)

NERDTree vim plugin, trying to add file without success

To my understanding, you can add files directly from MacVim with the NERDTree plugin. I navigate to NERDtree and hit 'm' to bring up the NERDTree filesystem menu as described in this post: vim and NERD Tree extension - adding a file
The problem is, I get this output after invoking 'm':
NERDTree Menu. Use j/k/enter and the shortcuts indicated
==========================================================
Error detected while processing function <SNR>14_showMenu..30..31:
line 4:
E716: Key not present in Dictionary: menuItems)-1)
E116: Invalid arguments for function len(self.menuItems)-1)
E116: Invalid arguments for function range(0, len(self.menuItems)-1)
E15: Invalid expression: range(0, len(self.menuItems)-1)
Press ENTER or type command to continue
I use NERD_tree with MacVim all of the time and I have no problems adding new files. Check what version of NERD_tree you are using. If you look in the file:
~/.vim/plugins/NERD_tree.vim
You should see this line near the top if you are using the latest version:
let s:NERD_tree_version = '4.1.0'
Also make sure that fs_menu.vim is present (this plugin is required for the file system commands)
~/.vim/nerdtree_plugin/fs_menu.vim
If you clone the git repository, make sure you run "rake install" from inside the repo...I didn't do this, and chose to just copy things around myself, and I missed the fs_menu.vim file that GWW mentioned above and that's what was giving me the error mentioned above. I just cloned the repository anew and ran "rake install" and everything works perfectly now.
This is a bug in the NERDTree plugin, you should send an email to the author, Marty Grenfell

Resources