On starting vim, everythiing looks okay until I press a key (any key), then the colors inverse (sort-of). The result is not nice for the eyes. Reproducible: Always Steps to Reproduce: 1. Install recent Rawhide updates 2. open a text in vim 3. press any key Actual Results: The color scheme changes to a strange inverse -- hurtful to the eyes Expected Results: Retain default colors vim-common.x86_64 2:9.1.1081-1.fc43 rawhide
Created attachment 2076559 [details] Screenshots just after loading a config file
Created attachment 2076560 [details] Screenshot after pressing the arrow key (one second after loading)
Hi, I cannot reproduce the issue - I suspect the issue might be connected to additional syntax plugin or a different terminal. Can you reproduce the issue when you open Vim this way: $ vim -u NONE -U NONE -N -i NONE <.ini file> What is your $TERM value?
(In reply to Zdenek Dohnal from comment #3) > $ vim -u NONE -U NONE -N -i NONE <.ini file> This opens without the theme colors and stays that way. (No sudden change of colors) > What is your $TERM value? $ echo $TERM foot I am running minimal (server) version of Fedora (rawhide) with Sway WM.
So it really is caused by a plugin, maybe influenced by a different terminal (I have default xterm-256color) - do you have any additional plugin which is not shipped with Vim? If you open the file normally, what's the output of ':scriptnames' command? Additionally, are you able to get output of ':set ft?' without changing the colors? If not, what's its output anyway? In my case if I open a .ini file it is 'dosini'.
(In reply to Zdenek Dohnal from comment #5) > > If you open the file normally, what's the output of ':scriptnames' command? :scriptnames 1: /etc/vimrc 2: /usr/share/vim/vim91/syntax/syntax.vim 3: /usr/share/vim/vim91/syntax/synload.vim 4: /usr/share/vim/vim91/syntax/syncolor.vim 5: /usr/share/vim/vim91/colors/lists/default.vim 6: /usr/share/vim/vim91/filetype.vim 7: /usr/share/vim/vimfiles/ftdetect/nginx.vim 8: /usr/share/vim/vimfiles/ftdetect/ninja.vim 9: /usr/share/vim/vim91/syntax/dosini.vim 10: /usr/share/vim/vim91/ftplugin.vim 11: ~/.vimrc 12: /usr/share/vim/vimfiles/plugin/cctree.vim 13: /usr/share/vim/vim91/plugin/getscriptPlugin.vim 14: /usr/share/vim/vim91/plugin/gzip.vim 15: /usr/share/vim/vim91/plugin/logiPat.vim 16: /usr/share/vim/vim91/plugin/manpager.vim 17: /usr/share/vim/vim91/plugin/matchparen.vim 18: /usr/share/vim/vim91/plugin/netrwPlugin.vim 19: /usr/share/vim/vim91/pack/dist/opt/netrw/plugin/netrwPlugin.vim 20: /usr/share/vim/vim91/plugin/openPlugin.vim 21 A: /usr/share/vim/vim91/autoload/dist/vim9.vim 22: /usr/share/vim/vim91/plugin/rrhelper.vim 23: /usr/share/vim/vim91/plugin/spellfile.vim 24: /usr/share/vim/vim91/plugin/tarPlugin.vim 25: /usr/share/vim/vim91/plugin/tohtml.vim 26: /usr/share/vim/vim91/plugin/tutor.vim 27: /usr/share/vim/vim91/plugin/vimballPlugin.vim 28: /usr/share/vim/vim91/plugin/zipPlugin.vim 29: /usr/share/vim/vim91/ftplugin/dosini.vim > > Additionally, are you able to get output of ':set ft?' without changing the > colors? If not, what's its output anyway? In my case if I open a .ini file > it is 'dosini'. It is the same for .ini files
Can you upload your /etc/vimrc and and ~/.vimrc? Either way, IMO the cause of the issue might be either your vimrc files, or /usr/share/vim/vimfiles/plugin/cctree.vim, which is not present in Fedora. Please test the idea by adding 'finish' on a new line at the start of one of mentioned file and start vim opening .ini file, and see if the issue is present.
Created attachment 2077232 [details] .vimrc file
Created attachment 2077233 [details] /etc/vimrc
(In reply to Zdenek Dohnal from comment #8) > Can you upload your /etc/vimrc and and ~/.vimrc? DONE > Please test the idea by adding 'finish' on a new line at the start of one of > mentioned file and start vim opening .ini file, and see if the issue is > present. The issue persists with 'finish' at the start of ~/.vimrc. However, 'finish' at the start of /etc/vimrc removes syntax colors/highlighting completely -- the result is similar to #c4
Aha, we've misunderstood each other. Try the 'finish' trick (put the line at the start of file, open the .ini file, see if the issue persists, remove the line from file and move it to the next file on the list) on each file on the mentioned list: 1: /etc/vimrc 2: /usr/share/vim/vim91/syntax/syntax.vim 3: /usr/share/vim/vim91/syntax/synload.vim 4: /usr/share/vim/vim91/syntax/syncolor.vim 5: /usr/share/vim/vim91/colors/lists/default.vim 6: /usr/share/vim/vim91/filetype.vim 7: /usr/share/vim/vimfiles/ftdetect/nginx.vim 8: /usr/share/vim/vimfiles/ftdetect/ninja.vim 9: /usr/share/vim/vim91/syntax/dosini.vim 10: /usr/share/vim/vim91/ftplugin.vim 11: ~/.vimrc 12: /usr/share/vim/vimfiles/plugin/cctree.vim 13: /usr/share/vim/vim91/plugin/getscriptPlugin.vim 14: /usr/share/vim/vim91/plugin/gzip.vim 15: /usr/share/vim/vim91/plugin/logiPat.vim 16: /usr/share/vim/vim91/plugin/manpager.vim 17: /usr/share/vim/vim91/plugin/matchparen.vim 18: /usr/share/vim/vim91/plugin/netrwPlugin.vim 19: /usr/share/vim/vim91/pack/dist/opt/netrw/plugin/netrwPlugin.vim 20: /usr/share/vim/vim91/plugin/openPlugin.vim 21 A: /usr/share/vim/vim91/autoload/dist/vim9.vim 22: /usr/share/vim/vim91/plugin/rrhelper.vim 23: /usr/share/vim/vim91/plugin/spellfile.vim 24: /usr/share/vim/vim91/plugin/tarPlugin.vim 25: /usr/share/vim/vim91/plugin/tohtml.vim 26: /usr/share/vim/vim91/plugin/tutor.vim 27: /usr/share/vim/vim91/plugin/vimballPlugin.vim 28: /usr/share/vim/vim91/plugin/zipPlugin.vim 29: /usr/share/vim/vim91/ftplugin/dosini.vim I've checked your vimrc files - /etc/vimrc is the same as default one, and your ~/.vimrc does not make any difference to .ini file syntax highlighting, so I really suspect the one which is not from Fedora - /usr/share/vim/vimfiles/plugin/cctree.vim . I open /usr/share/sssd/cfg_rules.ini for testing, please see if you see the issue on this file as well.
I am no longer seeing the issue after running another update yesterday. The version of vim is now 9.1.1122-1.fc43
FEDORA-2025-722d5ca5b9 (vim-9.1.1122-1.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-722d5ca5b9
Ok, thank you for letting me know - patchlevel 1122 is already even in stable releases (only F42 is still pending, due beta freeze), so I close the bug as CURRENTRELEASE.