Please consider doing a runtime switch to the XDG one when a ~/.config/vim directory exists.
Currently the runtime switch happens when ~/.config/vim/vimrc exists, and that's fine.
However, while testing #14757 yesterday, I ran into some issues when I dropped the syntax files in ~/.config/vim/syntax, I didn't have a vimrc anywhere and somehow expected it to work.
A fix for that was simple, just create a minimal ~/.config/vim/vimrc with syntax on and that was it.
I think it would be a lot better if Vim also checked for the presence of ~/.config/vim and enabled the XDG runtime in those cases.
I think this is how ~/.vim currently works anyway, you don't have to have a vimrc in ~/.vim and your syntax files will be sourced regardless.
There may also be a chance that I misunderstood something, if so please let me know and feel free to close this issue.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I think it would be good to do it for $XDG_CONFIG_HOME/vim too.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Now that I think, you need to have a ~/.config/vim/vimrc with syntax on anyway, given that it is not set by default.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Now that I think, you need to have a
~/.config/vim/vimrcwithsyntax onanyway, given that it is not set by default.
Wrong, it is.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
#2034 I have vim 9.1.429 and having .config/vim/vimrc works now :D
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()