the installation of the config.vim failed
Closed this issue · 6 comments
Hello,
while loading the config.vim file into my CentOS, and just run the command vim, as per the instruction, the installation started then it stopped due to a failure
Error detected while processing /root/.vimrc:
line 229:
E474: Invalid argument: completeopt+=noinsert
line 295:
E121: Undefined variable: v:true
E15: Invalid expression: v:true
line 358:
E121: Undefined variable: v:true
E116: Invalid arguments for function deoplete#custom#option
Error detected while processing function 42_setup_options:
line 66:
E706: Variable type mismatch for: val
Press ENTER or type command to continue
Error detected while processing function deoplete#enable..deoplete#initialize..deoplete#init#_initialize:
line 5:
E121: Undefined variable: v:false
Press ENTER or type command to continue
any idea regarding the error.
Thanks
BR // Hamza.
Hi!
What version of vim are you using? (you can check it by running vim --version
and looking at the few first lines of the output).
Hi!
I am getting the same error and here is what I get by running vim --version:
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 9 2019 03:17:15)
Included patches: 1-207, 209-629
Modified by bugzilla@redhat.com
Compiled by bugzilla@redhat.com
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
-clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand +perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python/dyn +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua +rightleft +windows
+diff +menu +ruby/dyn +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra +mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/etc"
f-b for $VIMRUNTIME: "/usr/share/vim/vim74"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -g -pipe -Wall -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D__linux__ -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE -Wl,-z,relro -L/usr/local/lib -Wl,--as-needed -o vim -lm -lnsl -lselinux -lncurses -lacl -lattr -lgpm -ldl -Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE -fstack-protector -L/usr/lib64/perl5/CORE -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
Thanks!
Ok! I see you are using Vim 7.4, but this config requires at least Vim 8.0, because some of the plugins depend on features that were added in that version (async support, among others).
If your distro doesn't have Vim 8.0 but does support appimages (https://appimage.org/), another option is to use a recent version of NeoVim, which can be just downloaded as an appimage.
I'll close the issue because this didn't end up being a problem in the config (the website informs of the Vim 8.0 requirement), but feel free to ask more questions.
The easiest way would be to try to ugprade Vim with apt:
sudo apt-get update
sudo apt-get install --only-upgrade vim
But I'm not entirely sure if the vim package in your CentOS is a vim compiled with all the requirements, and if it's Vim 8.0 or newer.
So if that doesn't work, I would investigate if CentOS can run appimages. If it can, the second simplest option would be to install appimages support (I don't know how in CentOS) and then download NeoVim's appimage and following the instructions from here: https://appimage.github.io/neovim/
If appimages aren't an option in CentOS, then I'm not sure I can help you, because it would require knowing more about CentOS.
sorry for the late answer, I finally fix it after upgrading the VIM version and I had a plenty of modules were missing in the system
Thanks a lot for the support.