Click to See Complete Forum and Search --> : vim erroring on startup of "vi"


JRefL5
10-12-2005, 08:16 AM
Looking for suggestions
New one for me, on a RHE3 system when starting "vi" I get a serries of errors after which the terminal window appears to lockup.
using "view", and "vi -R" do not encounter this problem.



vi vtsbkup.sh
Error detected while processing /etc/vimrc:
line 18:
E518: Unknown option: nocompatible
line 19:
E518: Unknown option: bs=2
line 30:
E216: No such group or event: BufRead *.txt set tw=78
Error detected while processing /usr/share/vim/vim62/syntax/syntax.vim:
line 14:
E117: Unknown function: exists
E15: Invalid expression: exists("syntax_on") || exists("syntax_manual")
Error detected while processing /usr/share/vim/vim62/syntax/synload.vim:
line 18:
E117: Unknown function: exists
E15: Invalid expression: exists("colors_name")
line 63:
E117: Unknown function: exists
E15: Invalid expression: exists("mysyntaxfile") && filereadable(expand(mysyntaxfile))
Error detected while processing /usr/share/vim/vim62/syntax/syntax.vim:
line 22:
E117: Unknown function: exists
E15: Invalid expression: exists("did_load_filetypes")
line 41:
E121: Undefined variable: s:did_ft
E15: Invalid expression: !s:did_ft
Error detected while processing /usr/share/vim/vim62/syntax/syncolor.vim:
line 9:
E117: Unknown function: exists
E15: Invalid expression: !exists("syntax_cmd") || syntax_cmd == "on"
line 33:
~MÅ
E15: Invalid expression: &background == "dark"
line 54:
E492: Not an editor command: SynColor Error^I^Iterm=reverse cterm=NONE ctermfg=White ctermbg=Red gui=NONE guifg=White guibg=Red
line 55:
E492: Not an editor command: SynColor Todo^I^Iterm=standout cterm=NONE ctermfg=Black ctermbg=Yellow gui=NONE guifg=Blue guibg=Yellow
line 59:
E492: Not an editor command: SynLink String^I^IConstant
line 60:
E492: Not an editor command: SynLink Character^IConstant
line 61:
E492: Not an editor command: SynLink Number^I^IConstant
line 62:
E492: Not an editor command: SynLink Boolean^I^IConstant
line 63:
E492: Not an editor command: SynLink Float^I^INumber
line 64:
E492: Not an editor command: SynLink Function^IIdentifier
line 65:
E492: Not an editor command: SynLink Conditional^IStatement
line 66:
E492: Not an editor command: SynLink Repeat^I^IStatement
line 67:
E492: Not an editor command: SynLink Label^I^IStatement
line 68:
E492: Not an editor command: SynLink Operator^IStatement
line 69:
E492: Not an editor command: SynLink Keyword^I^IStatement
line 70:
E492: Not an editor command: SynLink Exception^IStatement
line 71:
E492: Not an editor command: SynLink Include^I^IPreProc
line 72:
E492: Not an editor command: SynLink Define^I^IPreProc
line 73:
E492: Not an editor command: SynLink Macro^I^IPreProc
line 74:
E492: Not an editor command: SynLink PreCondit^IPreProc
line 75:
E492: Not an editor command: SynLink StorageClass^IType
line 76:
E492: Not an editor command: SynLink Structure^IType
line 77:
E492: Not an editor command: SynLink Typedef^I^IType
line 78:
E492: Not an editor command: SynLink Tag^I^ISpecial
line 79:
E492: Not an editor command: SynLink SpecialChar^ISpecial
line 80:
E492: Not an editor command: SynLink Delimiter^ISpecial
line 81:
E492: Not an editor command: SynLink SpecialComment^ISpecial
line 82:
E492: Not an editor command: SynLink Debug^I^ISpecial
line 84:
E184: No such user-defined command: SynColor
line 85:
E184: No such user-defined command: SynLink
Error detected while processing /usr/share/vim/vim62/plugin/explorer.vim:
line 32:
E117: Unknown function: exists
E15: Invalid expression: exists("loaded_explorer")
line 45:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explVertical")
line 50:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explWinSize")
line 56:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explSplitBelow")
line 62:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explSplitRight")
line 68:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explStartBelow")
line 74:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explStartRight")
line 79:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explDetailedHelp")
line 84:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explDetailedList")
line 89:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explDateFormat")
line 94:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explHideFiles")
line 99:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explSortBy")
line 104:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explDirsFirst")
line 109:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explSuffixesLast")
line 114:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explUseSeparators")
line 119:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:explFileHandler")
line 163:
E117: Unknown function: exists
E15: Invalid expression: !exists(':Explore')
line 166:
E117: Unknown function: exists
E15: Invalid expression: !exists(':Sexplore')
Error detected while processing /usr/share/vim/vim62/plugin/gzip.vim:
line 9:
E117: Unknown function: exists
E15: Invalid expression: exists("loaded_gzip") || &cp || exists("#BufReadPre#*.gz")
Error detected while processing /usr/share/vim/vim62/plugin/netrw.vim:
line 138:
E117: Unknown function: exists
E15: Invalid expression: exists("loaded_netrw") || &cp
line 146:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_ftpmode")
line 149:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_win95ftp")
line 152:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_cygwin")
line 164:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_rcp_cmd")
line 167:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_ftp_cmd")
line 170:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_scp_cmd")
line 173:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_http_cmd")
line 176:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_dav_cmd")
line 179:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_rsync_cmd")
line 182:
E117: Unknown function: exists
E15: Invalid expression: !exists("g:netrw_fetch_cmd")
Error detected while processing /usr/share/vim/vim62/plugin/rrhelper.vim:
line 6:
E117: Unknown function: exists
E15: Invalid expression: exists("loaded_rrhelper")
Error detected while processing /usr/share/vim/vim62/plugin/tohtml.vim:
line 9:
~MÅ
E15: Invalid expression: !&cp && !exists(":TOhtml") && has("user_commands")
Hit ENTER or type command to continue
Any responce ends up with a non-responceive screen afterwards.

I've tried rm /etc/vimrc, and restored it from a working system to no effect.

JRefL5
10-13-2005, 01:15 PM
:confused: 20+ Looks and no one has any ideas?

knute
10-13-2005, 01:27 PM
So what happens if you simply move the /etc/vimrc file to /etc/Vimrc and start vim?

Also, do you have a personal vimrc file? If you do, those values override the system defaults set up in /etc/vimrc.

JRefL5
10-13-2005, 03:39 PM
Thanks for the shot.
Yes I also tried "mv /etc/vinrc /etc/vimrc.old" and have rm'ed personal .vimrc file for my user.
All users, and root see this problem

knute
10-13-2005, 03:50 PM
In relooking at the info, part of the problem seems to be that your /usr/share/vim/... files may be corrupted in whole or in part.

Error detected while processing /usr/share/vim/vim62/plugin/rrhelper.vim:
line 6:
E117: Unknown function: exists
E15: Invalid expression: exists("loaded_rrhelper")
Error detected while processing /usr/share/vim/vim62/plugin/tohtml.vim:
line 9:
~MÅ
E15: Invalid expression: !&cp && !exists(":TOhtml") && has("user_commands")
Hit ENTER or type command to continue

That's from the end, but there are other references throughout the log that you posted.

If I were you, I'd purge (and I do mean the rpm option :) ) vim from your system and then make sure that the /usr/share/vim directory is COMPLETELY gone from your system. Clear the cache of any current vim rpms, then re-download and install a fresh copy of vim.

It may be a little bit of overkill with the cache thing and such, but if it fixes vim for you. :D

HTH

JRefL5
10-13-2005, 06:03 PM
Knute,
Thanks having vim fudged up is what I was thinking. We have contacted our "support" and they are "talking to RH". I'll give them a some time to try to come up with somthing, if not then its rpm time.

I'll post back when fixed, with solution.
JHC

JRefL5
10-20-2005, 07:42 AM
No Solution.

Problem appears to have self corrected :rolleyes: , no reboot, no changes to software, and no ideas from Service provider or RH :confused:

No further comments, unless I find somthing more.