Bugzilla – Bug 1200875
suse.vimrc fails to load on *.sls files
Last modified: 2022-06-24 09:50:37 UTC
Hi, this is a fresh install of openSUSE Leap 15.4. Creating/editing a .sls file using `vim` causes some errors: georg@georg-dev02 /s/salt> vim vim/init.sls Error detected while processing /usr/share/vim/vim82/suse.vimrc[10]../usr/share/vim/vim82/syntax/syntax.vim[43]..BufRead Autocommands for "*.sls"..function DetectSls[5]..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>3_SynSet[25]..script /usr/share/vim/site/syntax/sls.vim: line 67: E723: Missing end of Dictionary '}': line 68: E10: \ should be followed by /, ? or & line 69: E10: \ should be followed by /, ? or & Press ENTER or type command to continue georg@georg-dev02 /s/salt> zypper se -iv vim Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository ---+---------------------------+---------+------------------------+--------+----------------------------------------------------------- -- i | vim | package | 8.2.5038-150000.5.21.1 | x86_64 | Update repository with updates from SUSE Linux Enterprise 15 name: vim i+ | vim-data | package | 8.2.5038-150000.5.21.1 | noarch | Update repository with updates from SUSE Linux Enterprise 15 name: vim-data i+ | vim-data-common | package | 8.2.5038-150000.5.21.1 | noarch | Update repository with updates from SUSE Linux Enterprise 15 name: vim-data-common i+ | vim-plugin-salt | package | 0.0.1-bp154.2.18 | noarch | repo-oss name: vim-plugin-salt i+ | vim-plugin-searchcomplete | package | 1.1-bp154.2.18 | noarch | repo-oss name: vim-plugin-searchcomplete I tried to force re-install vim-plugin-salt but it did not help. Best, Georg
The error is not for ".sls" files but a general issue on vim configuration. This is a duplicated of https://bugzilla.suse.com/show_bug.cgi?id=1200184 Closing this one. Thanks for reporting! *** This bug has been marked as a duplicate of bug 1200184 ***
Thank you - however the other bug suggests the error to occur at every start of vim and it being resolved after installing `vim-data`. In my case the error only occurs when I try to open/edit a .sls file, typing `vim foo.py` or simply `vim` works with no issues - and I do already have `vim-data` installed.
Based on this, would it be o.k. with you to re-open this ticket?
Hey Georg, this should be the same issue: the current "suse.vimrc" was messy and caused these unexpected issues when opening new files or certain files. I've tested this, also getting as you, the error message when opening new "sls" files, but I got the issue solved as soon as I upgraded "vim" to latest version coming from: https://download.opensuse.org/repositories/editors/openSUSE_Leap_15.4/editors.repo The fix is already submitted to openSUSE:Factory and should get soon also into Leap. Is this update also fixing the issue for you?