summaryrefslogtreecommitdiffstats
path: root/src/os_unix.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_unix.h')
-rw-r--r--src/os_unix.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os_unix.h b/src/os_unix.h
index 67dad2e689..6efd8ce7a1 100644
--- a/src/os_unix.h
+++ b/src/os_unix.h
@@ -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