OmniSharp Error E216 - vim

I have installed omnisharp after spf13. I copied/paste script example vimrc to my .vimrc.local.
After launching vim I get the following error:
Error detected while processing C:\Users\...\_vimrc:
line 59:
E216: No such group or event: TextChanged,InsertLeave *.cs SyntasticCheck

The TextChanged event is a fairly recent addition. You need Vim 7.4 for it, or a Vim 7.3.882 (approximately) or later.

Related

vim Error detected while processing function <SNR>66_MRU_Select_File_Cmd

I use vim8. When I use vim, whether I open or save a file, there will be errors. To save a file, I must use: w!, Open the file must be q to close the error.
Error detected while processing function <SNR>66_MRU_Select_File_Cmd[21]..<SNR>66_MRU_Window_Edit_File[67]..BufRead Autocommands for "*"..function <SNR>25_Detect[17]..<SNR>25_BufInit[1]..<SNR>25_autoload[2]..script /root/.vim/bundle/vim-rails/autoload/rails.vim[169]..function <SNR>87_add_methods[2]..<SNR>87_function:
I tried to reinstall vim, but it didn't work
sudo apt remove vim
sudo apt install vim
Also try to modify the .vimrc file and copy the .vimrc file of vim that is normally used on other servers, but it doesn't work
I also tried to add the content shown in the answer here to the top of the file, but it still failed https://github.com/powerline/powerline/issues/1925
if has('python3')
silent! python3 1
endif
and i tried the solution here, but it still failed Error detected while processing function vundle#installer#new
set shell=/bin/bash
Then I tried the solution here, but it still didn't work https://github.com/vim/vim/issues/3117
mv ~/.vimrc ~/.vimrc_back
mv ~/.vim ~/.vim_back
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
cp ~/.vim/bundle/Vundle.vim/test/minirc.vim ~/.vimrc
What should I do so that vim can be used normally and no error will be reported
When a script is sourced by Vim it is given a number, which can be used to make sense of a stack trace like yours (edited for legibility):
Error detected while processing function <SNR>66_MRU_Select_File_Cmd[21]
..<SNR>66_MRU_Window_Edit_File[67]
..BufRead Autocommands for "*"
..function <SNR>25_Detect[17]
..<SNR>25_BufInit[1]
..<SNR>25_autoload[2]
..script /root/.vim/bundle/vim-rails/autoload/rails.vim[169]
..function <SNR>87_add_methods[2]
..<SNR>87_function:
Before reinstalling Vim, a more constructive approach would be to figure out whether the problem occurs in Vim's own runtime files or in yours. You can use :help :scriptnames to put a filename to those numbers, so to speak.
Without even seeing the output of that command, it doesn't take much effort to find out that at least some of your problems come from your runtime files:
" one plugin
<SNR>66_MRU_Select_File_Cmd[21]
<SNR>66_MRU_Window_Edit_File[67]
" another plugin
..script /root/.vim/bundle/vim-rails/autoload/rails.vim[169]
..function <SNR>87_add_methods[2]
..<SNR>87_function:
Which means that you should look for the actual cause, not throw the towel and reinstall Vim or try random answers to random unrelated questions.
One good starting point would be line 21 of function MRU_Select_File_Cmd() in script number 66, which should be a call to MRU_Window_Edit_File() in your outdated version. The stack trace then points to line 67 of that function, and so on.
Hypotheses:
badly installed plugins,
incompatible Vim version,
incompatible plugins,
options incompatible with your plugins,
etc.
Good luck.

How can I resolve these errors when I open a file with vim?

So when I open a file (i.e., vi examples.R) on my Ubuntu 20.04 laptop, I get the following string of errors:
Error detected while processing /home/mikel/.vimrc:
line 1:
E319: Sorry, the command is not available in this version: call plug#begin('~/.vim/plugged')
line 2:
E492: Not an editor command: Plug 'sheerun/vim-polyglot'
line 3:
E492: Not an editor command: Plug 'trevordmiller/nova-vim'
line 4:
E492: Not an editor command: Plug 'jalvesaq/Nvim-R'
line 6:
E319: Sorry, the command is not available in this version: call plug#end()
Press ENTER or type command to continue
My ~/.vimrc file is:
call plug#begin('~/.vim/plugged')
Plug 'sheerun/vim-polyglot'
Plug 'trevordmiller/nova-vim'
Plug 'jalvesaq/Nvim-R'
call plug#end()
I don't even know where to begin when diagnosing this issue. Do any of you have any thoughts? Thank you!
It looks like you broke your .vimrc, and that your vi is just an alias to vim. Try either fixing up your configuration (it looks to me that Vundle got messed up somehow) or delete ~/.vimrc and start again.

neovim on windows with FZF

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')

How to update Vim under Cygwin

Vim behaves weirdly under Cygwin. I follow this instruction and realize that in my /bin there's only vi.exe, no vim.exe! So I put the .vimrc example from Vim Wiki into a .virc in home directory. When I run vi, I get the following error:
Error detected while processing /home/USER/.virc:
line 21:
E319: Sorry, the command is not available in this version: filetype indent plugin on
line 24:
E319: Sorry, the command is not available in this version: syntax on
line 113:
E538: No mouse support: mouse=a
My question is:
How do I update vi to avoid the above errors?
Is it necessary to install a vim.exe? If it is, how can I do that (under Cygwin) ?
Thanks
Go back and run the CygWin setup.exe again and ensure you install absolutely everything (a) rather than just the defaults.
Disk space is cheap, time spent trying to figure out which package various things are in (b) is not :-)
(a) You do this by clicking on the "tail chasing arrows" at the top level until it says "Install" (see below image (b) for an example of the arrows, though those particular ones aren't at the top level).
(b) Vim is in Editors by the way, and it defaults to skip:

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)

Resources