[Bug 856655] New: color selection script in Vim menu.vim generates syntax errors
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.
https://bugzilla.novell.com/show_bug.cgi?id=856655 https://bugzilla.novell.com/show_bug.cgi?id=856655#c zhang jiajun <jzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |idonmez@suse.com |ovo.novell.com | -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=856655 https://bugzilla.novell.com/show_bug.cgi?id=856655#c1 Ismail Donmez <idonmez@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Ismail Donmez <idonmez@suse.com> 2014-01-14 14:06:31 UTC --- menu.vim resides in /usr/share/vim/vim74/menu.vim and its successfully opened here. What version of menu.vim are you using? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=856655 https://bugzilla.novell.com/show_bug.cgi?id=856655#c2 --- Comment #2 from L. A. Walsh <suse@tlinx.org> 2014-01-15 11:24:34 PST --- Do you have a version number in your "menu.vim". Mine doesn't contain one, but it was the version that was installed with vim74. Of importance -- when you install the color extension (either vim-plugin-colorsel-20110107-23.1.2.noarch.rpm or vim-plugin-colorschemes-1.0-23.1.2.noarch.rpm), were the above lines in your vim? If you are splitting hairs, this bug may be considered in one of the plugins vs. the base product. -- 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.
participants (1)
-
bugzilla_noreply@novell.com