gvim menu.vim Error detected while processing /usr/share/vim/vim/menu.vim:
https://bugzilla.novell.com/show_bug.cgi?id=856655 https://bugzilla.novell.com/show_bug.cgi?id=856655#c0 Summary: color selection script in Vim menu.vim generates syntax errors Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse@tlinx.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Firefox/3.6.28 In installing vim 7.4.052 I get a menu.vim that has errors in it when vim (or gvim) starts: line 354: E327: Part of menu-item path is not sub-menu The offending lines (commented out in my version) "" Setup the Edit.Color Scheme submenu "" get NL separated string with file names "let s:n = globpath(&runtimepath, "colors/*.vim") " "" split at NL, Ignore case for VMS and windows, sort on name "let s:names = sort(map(split(s:n, "\n"), 'substitute(v:val, "\\c.*[/\\\\:\\]]\\([^/\\\\:]*\\)\\.vim", "\\1", "")'), 1) " "" define all the submenu entries "let s:idx = 100 "for s:name in s:names " exe "an 20.450." . s:idx . ' &Edit.C&olor\ Scheme.' . s:name . " :colors " . s:name . "<CR>" " let s:idx = s:idx + 10 "endfor "unlet s:name s:names s:n s:idx " -------------- I guess the above allows some nifty color selection -- but unfortunately it seems to generate an annoying error message. Commenting it out isn't a solution, but it works if you don't need the functionality... Reproducible: Always Steps to Reproduce: 1. install vim/gvim; run vim/gvim; error message is shown in starting window 2. 3. Actual Results: get error message Expected Results: vim/gvim starts immediately w/no error messages -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.