0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.1.0345: Problem: gvimrc not sourced from XDG_CONFIG_HOME

Problem:  gvimrc not sourced from XDG_CONFIG_HOME (after v9.1.0327)
Solution: Also try to source from ~/.config/vim/gvimrc and
          $XDG_CONFIG_HOME/vim/gvimrc (Maxim Kim)

fixes: #14567
closes: #14568

Signed-off-by: Maxim Kim <habamax@haba-debian.habamax>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Maxim Kim
2024-04-17 22:29:06 +02:00
committed by Christian Brabandt
parent e20fa59903
commit a34ba82107
4 changed files with 153 additions and 6 deletions

View File

@@ -279,6 +279,12 @@ typedef struct dsc$descriptor DESC;
# ifndef USR_GVIMRC_FILE3
# define USR_GVIMRC_FILE3 "sys$login:_gvimrc"
# endif
#else
# ifndef USR_GVIMRC_FILE3
# define USR_GVIMRC_FILE3 (mch_getenv("XDG_CONFIG_HOME") \
? "$XDG_CONFIG_HOME/vim/gvimrc" \
: "~/.config/vim/gvimrc")
# endif
#endif
#ifndef VIM_DEFAULTS_FILE